mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 20:21:20 +00:00
fix deleteClaim
`ok` is not in same variable socpe like https://github.com/kubernetes/kubernetes/pull/31416
This commit is contained in:
@@ -413,7 +413,7 @@ func (ctrl *PersistentVolumeController) deleteClaim(obj interface{}) {
|
||||
}
|
||||
}
|
||||
|
||||
if !ok || claim == nil {
|
||||
if claim == nil {
|
||||
return
|
||||
}
|
||||
glog.V(4).Infof("claim %q deleted", claimToClaimKey(claim))
|
||||
|
Reference in New Issue
Block a user