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

Configuration
- Code Assist ID (for the configuration file):
remove-unnecessary-else
- You can configure custom keyboard shortcuts with this code action kind:
refactor.p42.remove-unnecessary-else
- This code assist provides refactoring suggestions. Learn how to configure the refactoring suggestion visibility.