projects
/
mmc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b25d398
)
ioutil is deprecated
author
Sergey Matveev <stargrave@stargrave.org>
Mon, 20 Mar 2023 10:59:00 +0000 (13:59 +0300)
committer
Sergey Matveev <stargrave@stargrave.org>
Mon, 20 Mar 2023 10:59:00 +0000 (13:59 +0300)
netrc.go
patch
|
blob
|
history
diff --git
a/netrc.go
b/netrc.go
index 4a2657fa1f53442f43c2206671fddd2fa4dc2daf..c3a9e61ab3a1cf73c7eccefe7e2fb2d131244764 100644
(file)
--- 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 "", ""