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 }