fix deleteClaim

`ok` is not in same variable socpe
like https://github.com/kubernetes/kubernetes/pull/31416
pull/6/head
better88 2016-09-01 23:26:38 +08:00 committed by GitHub
parent 524f0da769
commit 041beadcc8
1 changed files with 1 additions and 1 deletions

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