Maintenance: use io instead of ioutil if possible

This commit is contained in:
Quentin McGaw (desktop)
2021-05-30 03:13:19 +00:00
parent 82d98c4859
commit be22c8547f
10 changed files with 22 additions and 22 deletions

View File

@@ -3,7 +3,7 @@ package cli
import (
"flag"
"fmt"
"io/ioutil"
"io"
"strings"
"github.com/qdm12/gluetun/internal/constants"
@@ -20,7 +20,7 @@ func (c *cli) ClientKey(args []string, openFile os.OpenFileFunc) error {
if err != nil {
return err
}
data, err := ioutil.ReadAll(file)
data, err := io.ReadAll(file)
if err != nil {
_ = file.Close()
return err