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,13 +93,10 @@ func storeCephCredentials(volID volumeID, cr *credentials) error {
VolumeID: volID,
}
if err := secret.writeToFile(); err != nil {
err := secret.writeToFile()
return err
}
return nil
}
//
// Controller service request validation
//