diff options
author | zeripath <art27@cantab.net> | 2020-03-30 19:52:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 21:52:45 +0300 |
commit | bf847b9397b0365a81d1a2ca5386a6c4280d9e94 (patch) | |
tree | a902635a79aeb9442381d9d9741095b15a9e8721 /modules/private | |
parent | 972b3bf3b0b772dd919333375356ae56e469ebea (diff) | |
download | gitea-bf847b9397b0365a81d1a2ca5386a6c4280d9e94.tar.gz gitea-bf847b9397b0365a81d1a2ca5386a6c4280d9e94.zip |
Upgrade golangci-lint to 1.24.0 (#10894)
* upgrade golangci-lint to 1.24.0 to allow go 1.14 compatibility
* fix golangci-lint errors
* make make golangci-lint work when out of go-path
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/private')
-rw-r--r-- | modules/private/key.go | 2 | ||||
-rw-r--r-- | modules/private/manager.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/private/key.go b/modules/private/key.go index 40e1c492f8..bea7837906 100644 --- a/modules/private/key.go +++ b/modules/private/key.go @@ -34,7 +34,7 @@ func UpdatePublicKeyInRepo(keyID, repoID int64) error { // and returns public key found. func AuthorizedPublicKeyByContent(content string) (string, error) { // Ask for running deliver hook and test pull request tasks. - reqURL := setting.LocalURL + fmt.Sprintf("api/internal/ssh/authorized_keys") + reqURL := setting.LocalURL + "api/internal/ssh/authorized_keys" req := newInternalRequest(reqURL, "POST") req.Param("content", content) resp, err := req.Response() diff --git a/modules/private/manager.go b/modules/private/manager.go index de46c7ab2c..503acf17d6 100644 --- a/modules/private/manager.go +++ b/modules/private/manager.go @@ -15,7 +15,7 @@ import ( // Shutdown calls the internal shutdown function func Shutdown() (int, string) { - reqURL := setting.LocalURL + fmt.Sprintf("api/internal/manager/shutdown") + reqURL := setting.LocalURL + "api/internal/manager/shutdown" req := newInternalRequest(reqURL, "POST") resp, err := req.Response() @@ -33,7 +33,7 @@ func Shutdown() (int, string) { // Restart calls the internal restart function func Restart() (int, string) { - reqURL := setting.LocalURL + fmt.Sprintf("api/internal/manager/restart") + reqURL := setting.LocalURL + "api/internal/manager/restart" req := newInternalRequest(reqURL, "POST") resp, err := req.Response() @@ -57,7 +57,7 @@ type FlushOptions struct { // FlushQueues calls the internal flush-queues function func FlushQueues(timeout time.Duration, nonBlocking bool) (int, string) { - reqURL := setting.LocalURL + fmt.Sprintf("api/internal/manager/flush-queues") + reqURL := setting.LocalURL + "api/internal/manager/flush-queues" req := newInternalRequest(reqURL, "POST") if timeout > 0 { |