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

Chore: removes unnecessary assignment in loop #11780

Merged
merged 2 commits into from
Jun 8, 2019

Conversation

dimitropoulos
Copy link
Contributor

also reduces cyclomatic complexity with a slight reconfiguring of some conditions

What is the purpose of this pull request? (put an "X" next to item)
[x] Other, please explain:
see below

What changes did you make? (Give an overview)
I noticed that this code could be a tad bit improved by removing the assignment that was inside the for loop. I also reduced the complexity of the bottom bit slightly.

Is there anything you'd like reviewers to focus on?
it's a very small change. no.

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label May 29, 2019
@kaicataldo
Copy link
Member

Thanks for the PR. Mind fixing the errors that are causing CI to fail so we can take a look?

@kaicataldo kaicataldo added chore This change is not user-facing and removed triage An ESLint team member will look at this issue soon labels May 29, 2019
also reduces cyclomatic complexity with a slight reconfiguring of some conditions
@dimitropoulos
Copy link
Contributor Author

@kaicataldo sorry 'bout that, made the change in github and it didn't show me the whitespace like I'm used to in my editor. should be fixed now.

Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@ilyavolodin ilyavolodin merged commit e0fafc8 into eslint:master Jun 8, 2019
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Dec 6, 2019
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Dec 6, 2019
@dimitropoulos dimitropoulos deleted the patch-3 branch July 7, 2020 01:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion chore This change is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants