aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/repo_tree_nogogit.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/repo_tree_nogogit.go')
-rw-r--r--modules/git/repo_tree_nogogit.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/git/repo_tree_nogogit.go b/modules/git/repo_tree_nogogit.go
index 9d4268b13a..b27abb6e02 100644
--- a/modules/git/repo_tree_nogogit.go
+++ b/modules/git/repo_tree_nogogit.go
@@ -9,7 +9,6 @@ package git
import (
"io"
- "io/ioutil"
)
func (repo *Repository) getTree(id SHA1) (*Tree, error) {
@@ -27,7 +26,7 @@ func (repo *Repository) getTree(id SHA1) (*Tree, error) {
switch typ {
case "tag":
resolvedID := id
- data, err := ioutil.ReadAll(io.LimitReader(rd, size))
+ data, err := io.ReadAll(io.LimitReader(rd, size))
if err != nil {
return nil, err
}