From 8a84eda0f18b557f7f86afc28815b10d2453ae27 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 20 Mar 2023 13:59:00 +0300 Subject: [PATCH] ioutil is deprecated --- netrc.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netrc.go b/netrc.go index 4a2657f..c3a9e61 100644 --- a/netrc.go +++ b/netrc.go @@ -21,7 +21,6 @@ package mmc import ( "errors" "io/fs" - "io/ioutil" "log" "os" "path/filepath" @@ -37,7 +36,7 @@ func FindInNetrc(host string) (string, string) { } netrcPath = filepath.Join(homeDir, ".netrc") } - data, err := ioutil.ReadFile(netrcPath) + data, err := os.ReadFile(netrcPath) if err != nil { if errors.Is(err, fs.ErrNotExist) { return "", "" -- 2.44.0