Skip to content

Commit

Permalink
ci: make the linter happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Aug 24, 2024
1 parent 27bac56 commit 38beee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/action/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func Server(cfg *config.Config, logger log.Logger) error {
<-stop

return nil
}, func(err error) {
}, func(_ error) {
close(stop)
})
}
Expand All @@ -160,22 +160,22 @@ func handler(cfg *config.Config, logger log.Logger) *chi.Mux {
prom.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)

io.WriteString(w, http.StatusText(http.StatusOK))
})

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)
Expand Down

0 comments on commit 38beee1

Please sign in to comment.