chore(all): remove deprecated io/ioutil import

This commit is contained in:
Quentin McGaw
2022-08-24 19:39:55 +00:00
parent 062b6a276c
commit 8dfaebc737
8 changed files with 13 additions and 19 deletions

View File

@@ -2,7 +2,6 @@ package openvpn
import (
"fmt"
"io/ioutil"
"os"
"strings"
)
@@ -39,7 +38,7 @@ func writeIfDifferent(path, content string, puid, pgid int) (err error) {
}
if writeData {
err = ioutil.WriteFile(path, []byte(content), perm)
err = os.WriteFile(path, []byte(content), perm)
if err != nil {
return fmt.Errorf("writing file: %w", err)
}