diff options
| author | Taras Madan <tarasmadan@google.com> | 2025-07-15 16:43:33 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-07-17 08:31:25 +0000 |
| commit | abd11cfd08430ec5f9d2c6dbd0e0f798816922d1 (patch) | |
| tree | 522a8cc072d07d85c8a1d37b5b3ab89483599b48 /pkg/bisect/bisect.go | |
| parent | a81f309b57265e5760b926274e1f1681e7550e41 (diff) | |
all: apply linter auto fixes
./tools/syz-env bin/golangci-lint run ./... --fix
Diffstat (limited to 'pkg/bisect/bisect.go')
| -rw-r--r-- | pkg/bisect/bisect.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go index ba022e514..c4b2ebf50 100644 --- a/pkg/bisect/bisect.go +++ b/pkg/bisect/bisect.go @@ -749,9 +749,10 @@ func (env *env) testPredicate() (vcs.BisectResult, error) { } // For fix bisections, results are inverted. if env.cfg.Fix { - if testRes1.verdict == vcs.BisectBad { + switch testRes1.verdict { + case vcs.BisectBad: testRes1.verdict = vcs.BisectGood - } else if testRes1.verdict == vcs.BisectGood { + case vcs.BisectGood: testRes1.verdict = vcs.BisectBad } } |
