Merge nested if-statements
Combine two nested if
statements without additional operations into a single if
-statement, using &&
to combine the conditions.

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