From dab28c7049bdcf0da2b5c907e610c6a502fa37ac Mon Sep 17 00:00:00 2001 From: Gusted Date: Fri, 17 Dec 2021 02:15:02 +0100 Subject: [PATCH] Use JSON module instead of stdlib json (#18003) --- modules/updatechecker/update_checker.go | 2 +- 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"