From b564b12f403f8b2a4fcb84e18ad8d18c45e4fdfa Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Sun, 25 Aug 2024 01:08:29 +0200 Subject: [PATCH] ci: make the linter happy again --- pkg/action/server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/action/server.go b/pkg/action/server.go index 4fce264..68f3d55 100644 --- a/pkg/action/server.go +++ b/pkg/action/server.go @@ -150,7 +150,7 @@ func Server(cfg *config.Config, logger log.Logger) error { <-stop return nil - }, func(err error) { + }, func(_ error) { close(stop) }) } @@ -177,14 +177,14 @@ func handler(cfg *config.Config, logger log.Logger) *chi.Mux { reg.ServeHTTP(w, r) }) - root.Get("/healthz", func(w http.ResponseWriter, r *http.Request) { + root.Get("/healthz", func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/plain") w.WriteHeader(http.StatusOK) io.WriteString(w, http.StatusText(http.StatusOK)) }) - root.Get("/readyz", func(w http.ResponseWriter, r *http.Request) { + root.Get("/readyz", func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/plain") w.WriteHeader(http.StatusOK) @@ -192,7 +192,7 @@ func handler(cfg *config.Config, logger log.Logger) *chi.Mux { }) if cfg.Target.Engine == "http" { - root.Get("/sd", func(w http.ResponseWriter, r *http.Request) { + root.Get("/sd", func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/json; charset=utf-8") content, err := os.ReadFile(cfg.Target.File)