simplify the error check

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
This commit is contained in:
Madhu Rajanna 2019-01-17 13:31:07 +05:30
parent 36f99e36ca
commit 1a246f7bf3

View File

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