diff --git a/pkg/registry/core/pod/storage/eviction.go b/pkg/registry/core/pod/storage/eviction.go index ee8182c4135..71e9d97bbbf 100644 --- a/pkg/registry/core/pod/storage/eviction.go +++ b/pkg/registry/core/pod/storage/eviction.go @@ -407,7 +407,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 }