treewide: remove comparison with boolean constant
Change-Id: Iae5abb2a470865f0a831ed770b16eb439589d012
Reviewed-on: https://review.monogon.dev/c/monogon/+/3008
Reviewed-by: Serge Bazanski <serge@monogon.tech>
Vouch-Run-CI: Tim Windelschmidt <tim@monogon.tech>
Tested-by: Jenkins CI
diff --git a/metropolis/installer/test/main.go b/metropolis/installer/test/main.go
index 74a44cb..3c2460a 100644
--- a/metropolis/installer/test/main.go
+++ b/metropolis/installer/test/main.go
@@ -214,7 +214,7 @@
if err != nil {
t.Error(err.Error())
}
- if result != true {
+ if !result {
t.Errorf("QEMU didn't produce the expected output %q", expectedOutput)
}
}
@@ -237,7 +237,7 @@
if err != nil {
t.Error(err.Error())
}
- if result != true {
+ if !result {
t.Errorf("QEMU didn't produce the expected output %q", expectedOutput)
}
}
@@ -262,7 +262,7 @@
if err != nil {
t.Error(err.Error())
}
- if result != true {
+ if !result {
t.Errorf("QEMU didn't produce the expected output %q", expectedOutput)
}
@@ -314,7 +314,7 @@
if err != nil {
t.Error(err.Error())
}
- if result != true {
+ if !result {
t.Errorf("QEMU didn't produce the expected output %q", expectedOutput)
}
}
diff --git a/metropolis/pkg/event/memory/memory.go b/metropolis/pkg/event/memory/memory.go
index c684c18..7402d64 100644
--- a/metropolis/pkg/event/memory/memory.go
+++ b/metropolis/pkg/event/memory/memory.go
@@ -206,7 +206,7 @@
if opt.Predicate != nil {
predicate = opt.Predicate
}
- if opt.BacklogOnly != false {
+ if opt.BacklogOnly {
return empty, errors.New("BacklogOnly is not implemented for memory watchers")
}
}