mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-23 21:40:20 +00:00
rbd: remove false error condition check in genVolFromVolID
The error check condition in genVolFromID() is always false as far as code reading/workflow goes. Removing it for the same reason. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
2f828cf20c
commit
c9b7b6561a
@ -738,11 +738,6 @@ func genVolFromVolID(ctx context.Context, volumeID string, cr *util.Credentials,
|
||||
return rbdVol, err
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
util.ErrorLog(ctx, "failed to get stored image id: %v", err)
|
||||
return rbdVol, err
|
||||
}
|
||||
|
||||
err = rbdVol.getImageInfo()
|
||||
return rbdVol, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user