Commit 041beadc authored by better88's avatar better88 Committed by GitHub

fix deleteClaim

`ok` is not in same variable socpe like https://github.com/kubernetes/kubernetes/pull/31416
parent 524f0da7
...@@ -413,7 +413,7 @@ func (ctrl *PersistentVolumeController) deleteClaim(obj interface{}) { ...@@ -413,7 +413,7 @@ func (ctrl *PersistentVolumeController) deleteClaim(obj interface{}) {
} }
} }
if !ok || claim == nil { if claim == nil {
return return
} }
glog.V(4).Infof("claim %q deleted", claimToClaimKey(claim)) glog.V(4).Infof("claim %q deleted", claimToClaimKey(claim))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment