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

Add no-else-return check #93

Merged
merged 2 commits into from
Apr 11, 2023
Merged

Add no-else-return check #93

merged 2 commits into from
Apr 11, 2023

Conversation

Ruchip16
Copy link
Member

@Ruchip16 Ruchip16 commented Apr 11, 2023

The no-else-return check is a linting error that usually appears when you have an "else" statement immediately following a "return" statement in a function. The check suggests that you should remove the "else" statement and de-indent the code inside it. This ensures that the code inside the "else" block is not executed unnecessarily and will also make the code more concise and easier to read.

@Ruchip16 Ruchip16 added the bug label Apr 11, 2023
@Ruchip16 Ruchip16 requested a review from a team as a code owner April 11, 2023 11:43
@Ruchip16 Ruchip16 self-assigned this Apr 11, 2023
@Ruchip16 Ruchip16 requested review from ganeshrn, trishnaguha, shatakshiiii, priyamsahoo and ssbarnea and removed request for a team April 11, 2023 11:43
@ssbarnea ssbarnea merged commit 4d9e5e3 into ansible:main Apr 11, 2023
@Ruchip16 Ruchip16 deleted the else-return branch April 11, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants