multi: replace ioutil.WriteFile
This commit is contained in:
1 parent
ab83343c87
commit
789c6bac8c
13 files changed
+20
-31
No files matched your search
+1
-2
@@ -5,7 +5,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
)
|
||||
|
||||
@@ -105,7 +104,7 @@ func (f *OnionFile) StorePrivateKey(privateKey []byte) error {
|
||||
privateKeyContent = b.Bytes()
|
||||
}
|
||||
|
||||
err := ioutil.WriteFile(
|
||||
err := os.WriteFile(
|
||||
f.privateKeyPath, privateKeyContent, f.privateKeyPerm,
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user