Commit 0a7c2a2
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 2bb1568 commit 0a7c2a2
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
887 | 890 | | |
888 | 891 | | |
889 | 892 | | |
| |||
0 commit comments