Code Issues – Redundant else statement
March 19th, 2011
Cause:
The else statement is redundant when it doesn’t contain any code, and can be safely removed to improve readability. The type of code issue is a dead code.
Sample:
How to fix:
- Apply the Flatten Conditional refactoring: