Inspectopedia
 
2024.3

'switch' statement is redundant and can be replaced

Info
Code Style
New
Last modified: 03 December 2024

Reports a switch statement with an empty body, or with only one case branch, or with a default branch only.