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

[internal] Remove all variable redeclarations #6736

Merged
merged 1 commit into from
Apr 1, 2016

Conversation

epixa
Copy link
Contributor

@epixa epixa commented Apr 1, 2016

Redeclaring variables causes ambiguity and serves no purpose. It
actually causes a runtime error when you do it with let, and we can
enforce not doing it via a linter rule.

All of these instances were actually caught by adding the
no-redeclare linter rule.

Redeclaring variables causes ambiguity and serves no purpose. It
actually causes a runtime error when you do it with `let`, and we can
enforce not doing it via a linter rule.
@epixa
Copy link
Contributor Author

epixa commented Apr 1, 2016

jenkins, test it

@spalger spalger self-assigned this Apr 1, 2016
@spalger
Copy link
Contributor

spalger commented Apr 1, 2016

LGTM

@spalger spalger merged commit 74270b8 into elastic:master Apr 1, 2016
@epixa epixa deleted the noredeclare branch April 1, 2016 19:56
elastic-jasper added a commit that referenced this pull request Apr 1, 2016
---------

**Commit 1:**
[internal] Remove all variable redeclarations

Redeclaring variables causes ambiguity and serves no purpose. It
actually causes a runtime error when you do it with `let`, and we can
enforce not doing it via a linter rule.

* Original sha: de20762
* Authored by Court Ewing <court@epixa.com> on 2016-04-01T18:21:55Z
spalger added a commit that referenced this pull request Apr 1, 2016
---------

**Commit 1:**
[internal] Remove all variable redeclarations

Redeclaring variables causes ambiguity and serves no purpose. It
actually causes a runtime error when you do it with `let`, and we can
enforce not doing it via a linter rule.

* Original sha: de20762
* Authored by Court Ewing <court@epixa.com> on 2016-04-01T18:21:55Z
elastic-jasper added a commit that referenced this pull request Apr 1, 2016
---------

**Commit 1:**
[internal] Remove all variable redeclarations

Redeclaring variables causes ambiguity and serves no purpose. It
actually causes a runtime error when you do it with `let`, and we can
enforce not doing it via a linter rule.

* Original sha: de20762
* Authored by Court Ewing <court@epixa.com> on 2016-04-01T18:21:55Z
spalger added a commit that referenced this pull request Apr 1, 2016
spalger added a commit that referenced this pull request Apr 1, 2016
@epixa epixa added v4.5.2 and removed v4.5.1 labels May 14, 2016
@epixa epixa added v4.5.4 and removed v4.5.2 labels Jul 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants