Remove unnecessary else

Lift the else content of an if-else with a return statement to the outer indentation level.

Refactoring
P42 for VS Code
P42 for GitHub
Remove unnecessary else

Configuration

Related Code Assists

Learn More

Available In