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

Address PR #576 comments #587

Merged
merged 1 commit into from Oct 24, 2018
Merged

Conversation

burmanm
Copy link
Contributor

@burmanm burmanm commented Oct 24, 2018

Due to Github messing up the review on PR #576, here is a patch that should address a code quality issue. Validations should not have dual truth, either we trust the index or we trust the boolean indicating failure. Not a mess of both. This one chooses the boolean since it makes more sense than trying to duplicate the boolean with integers like in C (which is essentially what index -1 does - and since index is a loop counter it can't be negative if valid = false)

Also, simplify code that avoided variable shadowing.

@rhqci
Copy link

rhqci commented Oct 24, 2018

✔️ Jenkins CI: kiali-core-pr-e2e-test #248

KIALI_NAME=kialicorepr587-istio-system

@israel-hdez israel-hdez merged commit 75353db into kiali:master Oct 24, 2018
@burmanm burmanm deleted the 576_github_fix branch December 19, 2018 07:34
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.

None yet

4 participants