mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
DriverBenchDiffApplyN: ignore empty branch (staticcheck)
suppressing the "SA9003: empty branch (staticcheck)" instead of commenting-out or removing these lines because removing/commenting these lines causes a ripple effect of changes, and there's still a to-do below. ``` 13:06:14 daemon/graphdriver/graphtest/graphbench_unix.go:175:3: SA9003: empty branch (staticcheck) 13:06:14 if applyDiffSize != diffSize { ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
5ded7886c3
commit
41cfcac7fc
1 changed files with 4 additions and 0 deletions
|
@ -172,6 +172,10 @@ func DriverBenchDiffApplyN(b *testing.B, fileCount int, drivername string, drive
|
|||
b.StopTimer()
|
||||
arch.Close()
|
||||
|
||||
// suppressing "SA9003: empty branch (staticcheck)" instead of commenting-out/removing
|
||||
// these lines because removing/commenting these lines causes a ripple effect
|
||||
// of changes, and there's still a to-do below
|
||||
//nolint:staticcheck
|
||||
if applyDiffSize != diffSize {
|
||||
// TODO: enforce this
|
||||
//b.Fatalf("Apply diff size different, got %d, expected %s", applyDiffSize, diffSize)
|
||||
|
|
Loading…
Reference in a new issue