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:
@ -44,7 +44,7 @@ func createRBDStorageClass(
|
||||
scPath := fmt.Sprintf("%s/%s", rbdExamplePath, "storageclass.yaml")
|
||||
sc, err := getStorageClass(scPath)
|
||||
if err != nil {
|
||||
return nil
|
||||
return fmt.Errorf("failed to get sc: %w", err)
|
||||
}
|
||||
if name != "" {
|
||||
sc.Name = name
|
||||
|
Reference in New Issue
Block a user