Use JSON module instead of stdlib json (#18003)

This commit is contained in:
Gusted 2021-12-17 02:15:02 +01:00 committed by GitHub
parent 8354670708
commit dab28c7049
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -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"

@ -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"