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: Static analysis issues #3208

Closed
wants to merge 2 commits into from
Closed

fix: Static analysis issues #3208

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 28, 2022

fixes #3204 – issues reported by Klocwork

Comment on lines +2715 to +2716
handler_.on_text(from, to);
return;
Copy link
Contributor

@vitaut vitaut Nov 30, 2022

Choose a reason for hiding this comment

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

These and similar changes elsewhere look unnecessary, please revert.

Copy link
Author

Choose a reason for hiding this comment

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

I commented on the #3204 reasons for this change and 2 more below.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for providing more context but I still don't see reasons for changing this. Let's revert. The other changes seem fine.

Copy link
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

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

Mostly looks good but I don't think we need to change parsing logic. Those returns are perfectly valid code and make the logic a bit more readable.

@vitaut
Copy link
Contributor

vitaut commented Dec 1, 2022

Partly merged in b0c8263, thanks.

@vitaut vitaut closed this Dec 1, 2022
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.

Static analysis issues
1 participant