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

(CS-R1044) Redundant else due to return #11

Open
dgmjr opened this issue Jul 6, 2023 · 0 comments
Open

(CS-R1044) Redundant else due to return #11

dgmjr opened this issue Jul 6, 2023 · 0 comments

Comments

@dgmjr
Copy link
Contributor

dgmjr commented Jul 6, 2023

Description

The block under else-if is executed only when the preceding if condition evaluates to false. However, if the last statement of the block under the preceding if statement is a return statement, else in else-if becomes redundant as the controller never reaches it, and, it can be written as a …

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → app.deepsource.com/gh/dgmjr-io/InterfaceGenerator/issue/CS-R1044/occurrences/

@dgmjr dgmjr linked a pull request Jul 6, 2023 that will close this issue
@dgmjr dgmjr removed a link to a pull request Jul 6, 2023
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