multi: replace ioutil.WriteFile

This commit is contained in:
erik authored and ErikEk committed 2024-04-25 11:23:31 +02:00
1 parent ab83343c87
commit 789c6bac8c
13 files changed
+20 -31

No files matched your search

+1 -2
View File
@@ -7,7 +7,6 @@ import (
"crypto/x509"
"errors"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
@@ -279,7 +278,7 @@ func (t *TLSManager) ensureEncryption(keyRing keychain.SecretKeyRing) error {
if err != nil {
return err
}
err = ioutil.WriteFile(
err = os.WriteFile(
t.cfg.TLSKeyPath, b.Bytes(), modifyFilePermissions,
)
if err != nil {