Inspectopedia
 
2024.3

Unnecessary 'else' branch

Info
New
Last modified: 03 December 2024

Reports the else branches in if statements whose bodies always execute a terminating statement such as return or throw. Such branches are redundant and can be safely omitted.