Inspectopedia
 
2024.3

Code block contains single statement

Info
New
Last modified: 03 December 2024

Reports control flow statements with a single statement in their code block and suggests removing the braces from the control flow statement body.

Example:

After the quick-fix is applied: