mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
cleanup: use WriteString instead of Write
use WriteString instead of Write for the temp files. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
aba6979d29
commit
813f6c30cc
@ -54,7 +54,7 @@ func storeKey(key string) (string, error) {
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err = tmpfile.Write([]byte(key)); err != nil {
|
||||
if _, err = tmpfile.WriteString(key); err != nil {
|
||||
return "", fmt.Errorf("error writing key to temporary keyfile: %w", err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user