Skip to content

simplify discovery code #118

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

Merged
merged 1 commit into from
Dec 29, 2018
Merged

simplify discovery code #118

merged 1 commit into from
Dec 29, 2018

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Dec 29, 2018

avoid unnecessary elseif to reduce complexity.
use foreach instead of for loop.

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets follow-up to #112
Documentation -
License MIT

What's in this PR?

Avoid unnecessary elseif. Use foreach to not fail if list of conditions is a hashmap and not a 0-based numerical array.

Why?

Reduce complexity.

avoid unnecessary elseif to reduce complexity.
use foreach instead of for loop.
Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Thank you

@Nyholm Nyholm merged commit d0b9038 into master Dec 29, 2018
@Nyholm Nyholm deleted the simplify-code branch December 30, 2018 13:18
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.

2 participants