diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-05-11 21:59:37 +0100 |
---|---|---|
committer | Paulo Gomes <pjbgf@linux.com> | 2023-05-11 21:59:37 +0100 |
commit | 096b3cc16b547f3c0d6e4f92046945bcfac0fa14 (patch) | |
tree | df3e5f5265aac52a6683be10d74561e26e70cb0c /repository.go | |
parent | 9dfaf6acd8e3aa1c85bcce7d45f8e8c6b908319c (diff) | |
download | go-git-096b3cc16b547f3c0d6e4f92046945bcfac0fa14.tar.gz |
*: Remove use of deprecated io/util
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/repository.go b/repository.go index 287b597..89c48db 100644 --- a/repository.go +++ b/repository.go @@ -7,7 +7,7 @@ import ( "encoding/hex" "errors" "fmt" - stdioutil "io/ioutil" + "io" "os" "path" "path/filepath" @@ -367,7 +367,7 @@ func dotGitFileToOSFilesystem(path string, fs billy.Filesystem) (bfs billy.Files } defer ioutil.CheckClose(f, &err) - b, err := stdioutil.ReadAll(f) + b, err := io.ReadAll(f) if err != nil { return nil, err } @@ -396,7 +396,7 @@ func dotGitCommonDirectory(fs billy.Filesystem) (commonDir billy.Filesystem, err return nil, err } - b, err := stdioutil.ReadAll(f) + b, err := io.ReadAll(f) if err != nil { return nil, err } |