Skip to content

Commit

Permalink
Chore: please the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed Nov 14, 2023
1 parent 666b693 commit f3a9580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/Luzilla/dnsbl_exporter/internal/prober"
"github.com/Luzilla/dnsbl_exporter/internal/setup"
"github.com/Luzilla/dnsbl_exporter/pkg/dns"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors"
"github.com/urfave/cli/v2"
"golang.org/x/exp/slog"
Expand Down Expand Up @@ -180,7 +179,7 @@ func (a *DNSBLApp) Bootstrap() {

registryExporter.MustRegister(
collectors.NewProcessCollector(collectors.ProcessCollectorOpts{}),
prometheus.NewGoCollector(),
collectors.NewGoCollector(),
)
}

Expand Down
1 change: 1 addition & 0 deletions internal/index/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type IndexHandler struct {
}

func (i IndexHandler) Handler(w http.ResponseWriter, r *http.Request) {
//nolint:errcheck
w.Write([]byte(`<html>
<head><title>` + i.Name + `</title></head>
<body>
Expand Down

0 comments on commit f3a9580

Please sign in to comment.