mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
simplify the error check
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
This commit is contained in:
@ -93,11 +93,8 @@ func storeCephCredentials(volID volumeID, cr *credentials) error {
|
||||
VolumeID: volID,
|
||||
}
|
||||
|
||||
if err := secret.writeToFile(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
err := secret.writeToFile()
|
||||
return err
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user