From e2a4565a2ba1f0ac55b77c986d01e6badbbca986 Mon Sep 17 00:00:00 2001 From: lojies Date: Wed, 9 Nov 2022 09:54:41 +0800 Subject: [PATCH] cleanup:Omit comparison with boolean constant --- pkg/registry/core/pod/storage/eviction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/core/pod/storage/eviction.go b/pkg/registry/core/pod/storage/eviction.go index 844c27e475c..bfbfdf15239 100644 --- a/pkg/registry/core/pod/storage/eviction.go +++ b/pkg/registry/core/pod/storage/eviction.go @@ -393,7 +393,7 @@ func (r *EvictionREST) checkAndDecrement(namespace string, podName string, pdb p } // If this is a dry-run, we don't need to go any further than that. - if dryRun == true { + if dryRun { return nil }