Merge pull request #113768 from lojies/codecleanupforkubeleteviction

cleanup:Omit comparison with boolean constant
This commit is contained in:
Kubernetes Prow Robot 2022-12-09 14:34:26 -08:00 committed by GitHub
commit 6f6bf42ee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 this is a dry-run, we don't need to go any further than that.
if dryRun == true { if dryRun {
return nil return nil
} }