mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
cleanup: error is not nil but returns nil
In few places the error is not nil still it returns nil. Updates: #1586 Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
@ -68,7 +68,7 @@ func createPVCAndvalidatePV(c kubernetes.Interface, pvc *v1.PersistentVolumeClai
|
||||
}
|
||||
err = e2epv.WaitOnPVandPVC(c, pvc.Namespace, pv, pvc)
|
||||
if err != nil {
|
||||
return false, nil
|
||||
return false, fmt.Errorf("failed to wait for the pv and pvc to bind: %w", err)
|
||||
}
|
||||
return true, nil
|
||||
})
|
||||
|
Reference in New Issue
Block a user