Skip to content

Commit

Permalink
ci: make linter happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Aug 29, 2024
1 parent 876d4a4 commit dde44c8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endif

GOBUILD ?= CGO_ENABLED=0 go build
PACKAGES ?= $(shell go list ./...)
SOURCES ?= $(shell find . -name "*.go" -type f)
SOURCES ?= $(shell find . -name "*.go" -type f -not -path ./.devenv/\* -not -path ./.direnv/\*)
GENERATE ?= $(PACKAGES)

TAGS ?= netgo
Expand Down
2 changes: 1 addition & 1 deletion pkg/command/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (
SilenceErrors: false,
SilenceUsage: true,

PersistentPreRunE: func(ccmd *cobra.Command, args []string) error {
PersistentPreRunE: func(_ *cobra.Command, _ []string) error {
return setupLogger()
},

Expand Down
2 changes: 1 addition & 1 deletion pkg/command/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func serverAction(_ *cobra.Command, _ []string) {
<-stop

return nil
}, func(err error) {
}, func(_ error) {
close(stop)
})
}
Expand Down
8 changes: 4 additions & 4 deletions pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ func Load(cfg *config.Config) http.Handler {
root.Mount("/debug", middleware.Profiler())
}

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 Expand Up @@ -88,14 +88,14 @@ func Metrics(cfg *config.Config) http.Handler {
mux.Route("/", func(root chi.Router) {
root.Get("/metrics", prometheus.Handler(cfg.Metrics.Token))

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

0 comments on commit dde44c8

Please sign in to comment.