Skip to content

Refactoring: swap if and else branches

Move the main part of the action to the if branch.

See for reference: https://docs.sourcery.ai/Reference/Python/Default-Rules/swap-if-else-branches/

Merge request reports

Loading