Skip to content

[internal] Remove all variable redeclarations#6736

Merged
spalger merged 1 commit intoelastic:masterfrom
epixa:noredeclare
Apr 1, 2016
Merged

[internal] Remove all variable redeclarations#6736
spalger merged 1 commit intoelastic:masterfrom
epixa:noredeclare

Conversation

@epixa
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

epixa commented Apr 1, 2016

jenkins, test it

@spalger spalger self-assigned this Apr 1, 2016
@spalger
Copy link
Copy Markdown
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