Remove Unnecessary Condition

Use quick intentions to remove redundant code so it's not cluttering up your codebase.

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 Method
Extract code to a new method.
Inline Variable
Inline Variable
Sometimes inlining a variable can make your code more readable.
Introduce Variable
Introduce Variable
Refactor your code and introduce a new variable right when you need it.