diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/updatechecker/update_checker.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/updatechecker/update_checker.go b/modules/updatechecker/update_checker.go index 6c43309c1e..149a8462f6 100644 --- a/modules/updatechecker/update_checker.go +++ b/modules/updatechecker/update_checker.go @@ -5,7 +5,7 @@ package updatechecker import ( - "io/ioutil" + "io" "net/http" "code.gitea.io/gitea/modules/appstate" @@ -43,7 +43,7 @@ func GiteaUpdateChecker(httpEndpoint string) error { return err } defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { return err } |