Remove Unnecessary Condition

Use quick intentions to remove redundant code

You can use ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), to show context actions for redundant condition statements. You can then remove the redundant code.


Related Resources

Extract Method
Extract code to a new method
Inline Variable
Inline a variable in your code
Introduce variable
Refactor your code and introduce a new variable