Commit b0e53ca
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 76b1e25 commit b0e53ca
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
889 | 892 | | |
890 | 893 | | |
891 | 894 | | |
| |||
0 commit comments