diff options
author | Gusted <williamzijl7@hotmail.com> | 2021-12-17 02:15:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-17 09:15:02 +0800 |
commit | dab28c7049bdcf0da2b5c907e610c6a502fa37ac (patch) | |
tree | 7af3dfc49ab45a7381a98e05dda00766f7de0f3b | |
parent | 83546707085af9b59bdefdfbb2dc5511dadb57d7 (diff) | |
download | gitea-dab28c7049bdcf0da2b5c907e610c6a502fa37ac.tar.gz gitea-dab28c7049bdcf0da2b5c907e610c6a502fa37ac.zip |
Use JSON module instead of stdlib json (#18003)
-rw-r--r-- | modules/updatechecker/update_checker.go | 2 | ||||
-rw-r--r-- | routers/web/repo/projects.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/updatechecker/update_checker.go b/modules/updatechecker/update_checker.go index 01242189fa..6c43309c1e 100644 --- a/modules/updatechecker/update_checker.go +++ b/modules/updatechecker/update_checker.go @@ -5,11 +5,11 @@ package updatechecker import ( - "encoding/json" "io/ioutil" "net/http" "code.gitea.io/gitea/modules/appstate" + "code.gitea.io/gitea/modules/json" "code.gitea.io/gitea/modules/proxy" "code.gitea.io/gitea/modules/setting" diff --git a/routers/web/repo/projects.go b/routers/web/repo/projects.go index a8b2a7a5c4..88f46aa70b 100644 --- a/routers/web/repo/projects.go +++ b/routers/web/repo/projects.go @@ -5,7 +5,6 @@ package repo import ( - "encoding/json" "fmt" "net/http" "net/url" @@ -16,6 +15,7 @@ import ( "code.gitea.io/gitea/models/unit" "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/context" + "code.gitea.io/gitea/modules/json" "code.gitea.io/gitea/modules/markup" "code.gitea.io/gitea/modules/markup/markdown" "code.gitea.io/gitea/modules/setting" |