Commit 092344f
fix(lint): add return after t.Fatal to satisfy staticcheck SA5011
The staticcheck linter doesn't recognize that t.Fatal stops test
execution, so it warns about potential nil pointer dereference on
subsequent lines. Adding explicit return statements after t.Fatal
makes the control flow clear to the linter.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent da4ca40 commit 092344f
2 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
| 326 | + | |
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
| |||
0 commit comments