pkg/controller: fix staticcheck warning

This commit is contained in:
hwdef
2019-11-05 10:21:20 +08:00
parent 2b3540068b
commit 38256df718
7 changed files with 6 additions and 22 deletions

View File

@@ -435,7 +435,7 @@ func TestDeploymentController_cleanupDeployment(t *testing.T) {
gotDeletions := 0
for _, action := range fake.Actions() {
if "delete" == action.GetVerb() {
if action.GetVerb() == "delete" {
gotDeletions++
}
}