Commit 04de44f
committed
Shut up staticcheck SA5011
The "o == nil" check was confusing staticcheck into thinking it might be nil
even _after_ the Fatalf (apparently it doesn't recognize that that terminates).
Instead, simplify, drop that extra condition, and if we ever got a nil, we
are going to crash.
*shrug*, less test code to maintain in the future.
Signed-off-by: Miloslav Trmač <[email protected]>1 parent 27a3c17 commit 04de44f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments