mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
rbd: remove false error check in getDeviceSize
this removed err condition will be always false as error is always nil. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
1695240f54
commit
d70b594946
@ -1307,9 +1307,6 @@ func getDeviceSize(ctx context.Context, devicePath string) (uint64, error) {
|
||||
}
|
||||
|
||||
outStr := strings.TrimSpace(output)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("failed to read size of device %s: %s: %w", devicePath, outStr, err)
|
||||
}
|
||||
size, err := strconv.ParseUint(outStr, 10, 64)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("failed to parse size of device %s %s: %w", devicePath, outStr, err)
|
||||
|
Loading…
Reference in New Issue
Block a user