Merge pull request #118456 from testwill/bool-constant

chore: omit comparison to bool constant
This commit is contained in:
Kubernetes Prow Robot 2023-10-26 12:59:05 +02:00 committed by GitHub
commit 7658fe8dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -354,7 +354,7 @@ func copyFileLogs(ctx context.Context, w io.Writer, services []string) {
// in that order stopping on first success.
func heuristicsCopyFileLogs(ctx context.Context, w io.Writer, service string) {
logFileNames := [3]string{
fmt.Sprintf("%s", service),
service,
fmt.Sprintf("%s.log", service),
fmt.Sprintf("%s/%s.log", service, service),
}

View File

@ -429,7 +429,7 @@ func waitForPodResizeActuation(c clientset.Interface, podClient *e2epod.PodClien
if err != nil {
return nil, err
}
if verifyPodAllocations(pod, expectedContainers, false) == false {
if !verifyPodAllocations(pod, expectedContainers, false) {
continue
}
return pod, nil
@ -438,7 +438,7 @@ func waitForPodResizeActuation(c clientset.Interface, podClient *e2epod.PodClien
}
waitContainerCgroupValuesEqualsExpected := func() error {
for start := time.Now(); time.Since(start) < PollTimeout; time.Sleep(PollInterval) {
if verifyPodContainersCgroupValues(patchedPod, expectedContainers, false) == false {
if !verifyPodContainersCgroupValues(patchedPod, expectedContainers, false) {
continue
}
return nil

View File

@ -226,7 +226,7 @@ func findWindowsNode(ctx context.Context, f *framework.Framework) (v1.Node, erro
}
}
if foundNode == false {
if !foundNode {
e2eskipper.Skipf("Could not find and ready and schedulable Windows nodes")
}