Commit b12db14
Deduplicate RuleErrorBuilder call in EnumCaseOutsideEnumRule
Restructure the condition logic to return early for the valid case
(enum context) and have a single RuleErrorBuilder call for all
invalid contexts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f97c99a commit b12db14
1 file changed
Lines changed: 1 addition & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 25 | + | |
40 | 26 | | |
41 | 27 | | |
42 | 28 | | |
| |||
0 commit comments