Commit fd4565f
Fix CodeQL always-true comparison and string identity alerts
- SessionEventsE2ETest: replace trivially-true size >= 0 assertion with
conditional content access (getData() assertion when events present).
- InProcessEnvGuard: suppress StringEquality warning on intentional
identity comparison with ABSENT_SENTINEL (unique instance used as a
null-alternative sentinel to distinguish absent vs empty env vars).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c4e523e3-9d39-4598-90ec-54d959c44ce81 parent 1ad2ae0 commit fd4565f
2 files changed
Lines changed: 9 additions & 3 deletions
File tree
- java/sdk/src/test/java/com/github/copilot
- ffi
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
187 | | - | |
188 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| |||
0 commit comments