Commit c671679
committed
Fix #1244: Avoid unnecessary code blocks in switch case sections
Only wrap switch case statements in a Block when a local variable
declaration is present. Otherwise emit statements directly, eliminating
the extra level of braces and indentation.
https://claude.ai/code/session_01AkwUvu3XuCdj3D4axoX4UX1 parent f0d557f commit c671679
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | | - | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
896 | 899 | | |
897 | 900 | | |
898 | 901 | | |
| |||
0 commit comments