summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/updatechecker/update_checker.go2
-rw-r--r--routers/web/repo/projects.go2
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"