From abd11cfd08430ec5f9d2c6dbd0e0f798816922d1 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Tue, 15 Jul 2025 16:43:33 +0200 Subject: all: apply linter auto fixes ./tools/syz-env bin/golangci-lint run ./... --fix --- pkg/bisect/bisect.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/bisect') 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 } } -- cgit mrf-deployment