diff options
Diffstat (limited to 'modules/private/restore_repo.go')
-rw-r--r-- | modules/private/restore_repo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/private/restore_repo.go b/modules/private/restore_repo.go index b5592278ab..6ebf4c63d5 100644 --- a/modules/private/restore_repo.go +++ b/modules/private/restore_repo.go @@ -7,7 +7,7 @@ package private import ( "context" "fmt" - "io/ioutil" + "io" "net/http" "time" @@ -47,7 +47,7 @@ func RestoreRepo(ctx context.Context, repoDir, ownerName, repoName string, units var ret = struct { Err string `json:"err"` }{} - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { return http.StatusInternalServerError, fmt.Sprintf("Response body error: %v", err.Error()) } |