fix lint error (#30)

Reviewed-on: https://gitea.com/gitea/act_runner/pulls/30
Reviewed-by: John Olheiser <john+gitea@jolheiser.com>
pull/2/head
techknowlogick 2023-03-01 06:40:20 +08:00 committed by Earl Warren
parent c5c4e275ac
commit 1da9c87cac
No known key found for this signature in database
GPG Key ID: 0579CB2928A78A00
1 changed files with 2 additions and 4 deletions

View File

@ -29,9 +29,7 @@ const (
urlBase = "/_apis/artifactcache"
)
var (
logger = log.StandardLogger().WithField("module", "cache_request")
)
var logger = log.StandardLogger().WithField("module", "cache_request")
type Handler struct {
engine engine
@ -104,7 +102,7 @@ func NewHandler() (*Handler, error) {
}
go func() {
if err := http.Serve(listener, h.router); err != nil {
logger.Error("http serve: %v", err)
logger.Errorf("http serve: %v", err)
}
}()
h.listener = listener