fix deleteVolume

`ok` is not in same variable socpe
This commit is contained in:
better0332 2016-08-25 15:26:18 +08:00 committed by GitHub
parent bdeeb9db90
commit 524f0da769

View File

@ -303,7 +303,7 @@ func (ctrl *PersistentVolumeController) deleteVolume(obj interface{}) {
}
}
if !ok || volume == nil || volume.Spec.ClaimRef == nil {
if volume == nil || volume.Spec.ClaimRef == nil {
return
}