simplify isMutating logic
This commit is contained in:
parent
ff449375da
commit
1f5b29b7f6
@ -165,9 +165,6 @@ func IsPSPMutating(pspObj *v1beta1.PodSecurityPolicy) (mutating bool, fields, an
|
||||
}
|
||||
}
|
||||
|
||||
if len(fields) > 0 || len(annotations) > 0 {
|
||||
return true, fields, annotations
|
||||
}
|
||||
|
||||
return false, fields, annotations
|
||||
isMutating := len(fields) > 0 || len(annotations) > 0
|
||||
return isMutating, fields, annotations
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user