Skip to content

Simplify return statements (flake8-return) - #5574

Open
AniketBajaj2024 wants to merge 1 commit into
Osmantic:mainfrom
AniketBajaj2024:fix/ret-return-simplification
Open

AniketBajaj2024 wants to merge 1 commit into
Osmantic:mainfrom
AniketBajaj2024:fix/ret-return-simplification

Conversation

@AniketBajaj2024

Copy link
Copy Markdown
Contributor

Removes redundant else-after-return and unnecessary assignment before return. Control flow is unchanged.

Applied by 'ruff check --select RET --fix'; all touched files byte-compiled afterwards.

Removes redundant else-after-return and unnecessary assignment before
return. Control flow is unchanged.

Applied by 'ruff check --select RET --fix'; all touched files
byte-compiled afterwards.
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.

1 participant