fix deleteClaim

`ok` is not in same variable socpe
like https://github.com/kubernetes/kubernetes/pull/31416
This commit is contained in:
better88
2016-09-01 23:26:38 +08:00
committed by GitHub
parent 524f0da769
commit 041beadcc8

View File

@@ -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))