Commit bc99892
Address PR feedback: Add WorkItem and refactor assignment checks
- Added WorkItem attribute to TestIfStatement_CompoundAssignment_Event test
- Merged simple and compound assignment checks using IsLeftSideOfAnyAssignment helper
- Simplified code by consolidating the two separate if statements into one
Co-authored-by: CyrusNajmabadi <4564579+CyrusNajmabadi@users.noreply.github.com>1 parent 30128dd commit bc99892
File tree
2 files changed
+5
-11
lines changed- src/Analyzers
- CSharp/Tests/UseNullPropagation
- Core/Analyzers/UseNullPropagation
2 files changed
+5
-11
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2914 | 2914 | | |
2915 | 2915 | | |
2916 | 2916 | | |
2917 | | - | |
| 2917 | + | |
2918 | 2918 | | |
2919 | 2919 | | |
2920 | 2920 | | |
| |||
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
452 | 446 | | |
453 | | - | |
| 447 | + | |
454 | 448 | | |
455 | 449 | | |
456 | 450 | | |
| |||
0 commit comments