Skip to content

Use const for requires - #4109

Merged
zcbenz merged 8 commits into
masterfrom
const
Jan 15, 2016
Merged

zcbenz merged 8 commits into
masterfrom
const

Conversation

@jlord

@jlord jlord commented Jan 14, 2016

Copy link
Copy Markdown
Contributor

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

A part of #4065

Comment thread atom/browser/api/lib/app.js Outdated

Copy link
Copy Markdown
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
Copy Markdown
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 👍

Comment thread atom/browser/api/lib/app.js Outdated

Copy link
Copy Markdown
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
Comment thread atom/browser/api/lib/dialog.js Outdated

Copy link
Copy Markdown
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

zcbenz commented Jan 15, 2016

Copy link
Copy Markdown
Contributor

👍

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