aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/bisect
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/bisect')
-rw-r--r--pkg/bisect/bisect.go5
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
}
}