Commit 03b62c1
Use TryGetTagHelpers instead of GetTagHelpers with null check
Replace GetTagHelpers() with null check pattern with TryGetTagHelpers() for cleaner code and better null handling.
All tests pass (9/9 passing).
Co-authored-by: DustinCampbell <[email protected]>1 parent e302b42 commit 03b62c1
File tree
1 file changed
+1
-2
lines changed- src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/CodeActions/Razor
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
| 96 | + | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| |||
0 commit comments