aboutsummaryrefslogtreecommitdiffstats
path: root/modules/updatechecker/update_checker.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/updatechecker/update_checker.go')
-rw-r--r--modules/updatechecker/update_checker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/updatechecker/update_checker.go b/modules/updatechecker/update_checker.go
index 3c1e05d060..f0686c0f78 100644
--- a/modules/updatechecker/update_checker.go
+++ b/modules/updatechecker/update_checker.go
@@ -34,7 +34,7 @@ func GiteaUpdateChecker(httpEndpoint string) error {
},
}
- req, err := http.NewRequest("GET", httpEndpoint, nil)
+ req, err := http.NewRequest(http.MethodGet, httpEndpoint, nil)
if err != nil {
return err
}