mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
simplify the error check
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
This commit is contained in:
parent
36f99e36ca
commit
1a246f7bf3
@ -93,11 +93,8 @@ func storeCephCredentials(volID volumeID, cr *credentials) error {
|
|||||||
VolumeID: volID,
|
VolumeID: volID,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := secret.writeToFile(); err != nil {
|
err := secret.writeToFile()
|
||||||
return err
|
return err
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user