Code block contains single statement

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: