Skip to content

Conversation

jlord
Copy link
Contributor

@jlord jlord commented Jan 14, 2016

We also inlined a few vars that coffee had listed at the top of each file.

A part of #4065


var slice = [].slice;

var appPath;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was the first file we worked on, do we want to inline these now like we ended up doing in the other files?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yeah, I'll do that 👍

for (i = 0, len = ref1.length; i < len; i++) {
name = ref1[i];
var name = ref1[i];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The var deceleration should be outside of the loop (line 63).

@jlord jlord changed the title Use const for requires [WIP] Use const for requires Jan 15, 2016
@@ -164,8 +162,9 @@ module.exports = {
};

// Mark standard asynchronous functions.
ref1 = ['showMessageBox', 'showOpenDialog', 'showSaveDialog'];
var ref1 = ['showMessageBox', 'showOpenDialog', 'showSaveDialog'];
var j, len
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor, but missing a ; here

@zcbenz
Copy link
Contributor

zcbenz commented Jan 15, 2016

👍

zcbenz added a commit that referenced this pull request Jan 15, 2016
[WIP] Use `const` for requires
@zcbenz zcbenz merged commit 3875b30 into master Jan 15, 2016
@zcbenz zcbenz deleted the const branch January 15, 2016 08:32
@kevinsawicki kevinsawicki changed the title [WIP] Use const for requires Use const for requires Jan 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants