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

Refactor this method to not always return the same value #52

Open
danielmunteanu123 opened this issue May 30, 2021 · 0 comments
Open

Refactor this method to not always return the same value #52

danielmunteanu123 opened this issue May 30, 2021 · 0 comments

Comments

@danielmunteanu123
Copy link

Screenshot_19
SonarQube is saying that methods returns should not be invariant
When a method is designed to return an invariant value, it may be poor design, but it shouldn't adversely affect the outcome of your program. However, when it happens on all paths through the logic, it is surely a bug.This rule raises an issue when a method contains several return statements that all return the same value.
Thank you

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

No branches or pull requests

1 participant