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 authored and renovate[bot] committed Aug 24, 2024
1 parent 4fc66df commit aabd761
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pkg/action/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func Server(cfg *config.Config, logger log.Logger) error {
<-stop

return nil
}, func(err error) {
}, func(_ error) {
close(stop)
})
}
Expand Down Expand Up @@ -171,14 +171,14 @@ func handler(cfg *config.Config, logger log.Logger, client *jenkins.Client) *chi
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)

Expand Down
2 changes: 1 addition & 1 deletion pkg/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Run() error {
Commands: []*cli.Command{
Health(cfg),
},
Action: func(c *cli.Context) error {
Action: func(_ *cli.Context) error {
logger := setupLogger(cfg)

if cfg.Target.Address == "" {
Expand Down
2 changes: 1 addition & 1 deletion pkg/command/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func Health(cfg *config.Config) *cli.Command {
Name: "health",
Usage: "Perform health checks",
Flags: HealthFlags(cfg),
Action: func(c *cli.Context) error {
Action: func(_ *cli.Context) error {
logger := setupLogger(cfg)

resp, err := http.Get(
Expand Down

0 comments on commit aabd761

Please sign in to comment.