Merge pull request #111046 from wongearl/omit-comparison

omit comparison to bool constant
This commit is contained in:
Kubernetes Prow Robot 2022-07-26 03:37:09 -07:00 committed by GitHub
commit 00ace95226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -615,7 +615,7 @@ done
return false, err return false, err
} }
// verify the pod ready status has reported not ready // verify the pod ready status has reported not ready
return podutil.IsPodReady(pod) == false, nil return !podutil.IsPodReady(pod), nil
}) })
framework.ExpectNoError(err) framework.ExpectNoError(err)
}) })
@ -698,7 +698,7 @@ done
return false, err return false, err
} }
// verify the pod ready status has reported not ready // verify the pod ready status has reported not ready
return podutil.IsPodReady(pod) == false, nil return !podutil.IsPodReady(pod), nil
}) })
framework.ExpectNoError(err) framework.ExpectNoError(err)

View File

@ -18,6 +18,7 @@ package node
import ( import (
"context" "context"
"github.com/onsi/ginkgo/v2" "github.com/onsi/ginkgo/v2"
v1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1"
@ -83,7 +84,7 @@ func findLinuxNode(f *framework.Framework) (v1.Node, error) {
} }
} }
if foundNode == false { if !foundNode {
e2eskipper.Skipf("Could not find and ready and schedulable Linux nodes") e2eskipper.Skipf("Could not find and ready and schedulable Linux nodes")
} }