Commit 27ca727
fix: resolve remaining CodeQL issues from PR #876
- BookSearchTool: collapse else-if(!semanticAvailable)+else into single
else with ternary to remove constant-condition CodeQL finding
- BookGuidelinesTool: use pattern match (is int / is GuidelineType) to
extract nullable locals before lambda capture, removing nullable
dereference warnings at lines 38 and 41
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5ae51e4 commit 27ca727
2 files changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | 315 | | |
320 | 316 | | |
321 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
322 | 320 | | |
323 | 321 | | |
324 | 322 | | |
| |||
0 commit comments