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

Fix two code-analyser bugs #282

Open
wants to merge 1 commit into
base: noetic-devel
Choose a base branch
from
Open

Conversation

Timple
Copy link
Contributor

@Timple Timple commented Feb 4, 2023

We have a static code analyser running and it triggered on these two statements.

The return 0 can never be reached.

And one should only invert booleans with !. Not integers. The std::set used has an .insert option which returns if it was actually added. So using that instead.

@Timple Timple mentioned this pull request Feb 4, 2023
@ct2034 ct2034 added the ros1 PR tackling a ROS1 branch label Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ros1 PR tackling a ROS1 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants