Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid declaring the same variable twice. #1028

Closed
wants to merge 1 commit into from
Closed

Avoid declaring the same variable twice. #1028

wants to merge 1 commit into from

Conversation

mina86
Copy link

@mina86 mina86 commented Jan 22, 2018

src is an argument to Lexer.prototype.token so there is no need to
declare it as a variable. It doesn’t seem to do any harm, but some
linters/compilers (read: Closure Compiler) complain. Since there’s
almost zero cost in getting rid of the duplicate declaration, do so.

src is an argument to Lexer.prototype.token so there is no need to
declare it as a variable.  It doesn’t seem to do any harm, but some
linters/compilers (read: Closure Compiler) complain.  Since there’s
almost zero cost in getting rid of the duplicate declaration, do so.
@joshbruce
Copy link
Member

LGTM. Second pair of eyes, please: @Feder1co5oave or @UziTech.

@Feder1co5oave
Copy link
Contributor

Yep. I fixed this in #1020 too

@joshbruce
Copy link
Member

Thank you @mina86! Closing in favor of #1020, which covers a lot more territory as well.

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.

3 participants