Refactor an Unreachable Statement
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.
You can use ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), to show context actions for redundant condition statements. You can then remove the redundant code.