Use JSON module instead of stdlib json (#18003)

tokarchuk/v1.17
Gusted 3 years ago committed by GitHub
parent 8354670708
commit dab28c7049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/updatechecker/update_checker.go
  2. 2
      routers/web/repo/projects.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"

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

Loading…
Cancel
Save