lint/control-flow/no-else-after-return
In the code-quality set. Safe fix.
What it does
Drop the else after a branch that always returns, throws or exits, and move its body after the if.
Configuration
[lint.rules]
"control-flow/no-else-after-return" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
RemoveAlwaysElse(rector)