gofumpt -w -l -extra . (#661)

This commit is contained in:
6543
2022-01-05 21:50:23 +01:00
committed by GitHub
parent dec0eeeed7
commit 2f91bdd4a0
35 changed files with 79 additions and 90 deletions

View File

@@ -24,10 +24,8 @@ import (
"github.com/woodpecker-ci/woodpecker/server"
)
var (
// errInvalidToken is returned when the api request token is invalid.
errInvalidToken = errors.New("Invalid or missing token")
)
// errInvalidToken is returned when the api request token is invalid.
var errInvalidToken = errors.New("Invalid or missing token")
// PromHandler will pass the call from /api/metrics/prometheus to prometheus
func PromHandler() gin.HandlerFunc {