-
Notifications
You must be signed in to change notification settings - Fork 188
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
Changed several functions to be bool-correct #3726
Conversation
@cf-bottom jenkins with exotics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me otherwise.
This fixes almost all remaining alerts for bool correctness in return values. The remaining cases are non-trivial, and warrant their own investigation and commits. Also made some smaller style changes in surrounding code. (Assertions, formatting, parentheses, comments). Reported by LGTM: https://lgtm.com/rules/1508604166004/ Changelog: None Ticket: None Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Alright, I triggered a build: (with exotics) Jenkins: https://ci.cfengine.com/job/pr-pipeline/2307/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-2307/ |
This pull request introduces 4 alerts and fixes 123 when merging 34c6dd3 into 3c4d046 - view on LGTM.com new alerts:
fixed alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good otherwise. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
This fixes almost all remaining alerts for bool
correctness in return values. The remaining cases are
non-trivial, and warrant their own investigation and
commits.
Also made some smaller style changes in surrounding code.
(Assertions, formatting, parentheses, comments).
Reported by LGTM:
https://lgtm.com/rules/1508604166004/
Merge together:
#3726
https://github.com/cfengine/enterprise/pull/528