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:
Humble Chirammal 2020-10-13 12:07:50 +05:30 committed by mergify[bot]
parent 2f828cf20c
commit c9b7b6561a

View File

@ -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
}