Shared code in if and else #5234
Labels
A-lint
Area: New lints
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-complexity
Lint: Belongs in the complexity lint group
Uh oh!
There was an error while loading. Please reload this page.
The lint would trigger if the
if
,else if
andelse
clasues have the same code in all branches.could be optimized to
playground
The text was updated successfully, but these errors were encountered: