From 911cc78679ed3ff863afd3fcaf0fa0e4b6aecdf1 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Sun, 25 Aug 2024 01:05:17 +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 4bc233e..e76ca56 100644 --- a/pkg/action/server.go +++ b/pkg/action/server.go @@ -123,7 +123,7 @@ func Server(cfg *config.Config, logger log.Logger) error { <-stop return nil - }, func(err error) { + }, func(_ error) { close(stop) }) } @@ -150,14 +150,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) @@ -165,7 +165,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)