Skip to content

Commit dab28c7

Browse files
author
Gusted
authored
Use JSON module instead of stdlib json (#18003)
1 parent 8354670 commit dab28c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/updatechecker/update_checker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
package updatechecker
66

77
import (
8-
"encoding/json"
98
"io/ioutil"
109
"net/http"
1110

1211
"code.gitea.io/gitea/modules/appstate"
12+
"code.gitea.io/gitea/modules/json"
1313
"code.gitea.io/gitea/modules/proxy"
1414
"code.gitea.io/gitea/modules/setting"
1515

routers/web/repo/projects.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package repo
66

77
import (
8-
"encoding/json"
98
"fmt"
109
"net/http"
1110
"net/url"
@@ -16,6 +15,7 @@ import (
1615
"code.gitea.io/gitea/models/unit"
1716
"code.gitea.io/gitea/modules/base"
1817
"code.gitea.io/gitea/modules/context"
18+
"code.gitea.io/gitea/modules/json"
1919
"code.gitea.io/gitea/modules/markup"
2020
"code.gitea.io/gitea/modules/markup/markdown"
2121
"code.gitea.io/gitea/modules/setting"

0 commit comments

Comments
 (0)