Commit 8d553c0
committed
mountinfo: fix QF1001 (staticcheck)
Error: mountinfo/mounted_linux_test.go:282:6: QF1001: could apply De Morgan's law (staticcheck)
if !(tc.isNotExist && errors.Is(err, os.ErrNotExist)) {
^
Error: mountinfo/mounted_linux_test.go:353:8: QF1001: could apply De Morgan's law (staticcheck)
if !(tc.isNotExist && errors.Is(err, os.ErrNotExist)) {
^
Signed-off-by: Sebastiaan van Stijn <[email protected]>1 parent 6e2523c commit 8d553c0
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| |||
0 commit comments