Skip to content

Commit

Permalink
Fix issues raised by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dewey committed Jul 11, 2024
1 parent c92250c commit 4b99d50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion api/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,5 @@ func getLFMTaste(s service) http.HandlerFunc {
return
}
render.JSON(w, r, al)
return
}
}
3 changes: 1 addition & 2 deletions pmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"strings"
"time"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"

"github.com/caarlos0/env"
Expand Down Expand Up @@ -69,7 +68,7 @@ func main() {
r := chi.NewRouter()
r.Handle("/*", http.FileServer(http.Dir(assetPath)))
r.Handle("/metrics", promhttp.Handler())
r.Mount("/api", prometheus.InstrumentHandler("api", api.NewHandler(*as)))
r.Mount("/api", api.NewHandler(*as))

l.Log("msg", fmt.Sprintf("paste-my-taste listening on http://localhost:%d", cfg.Port))
err = http.ListenAndServe(fmt.Sprintf(":%d", cfg.Port), r)
Expand Down

0 comments on commit 4b99d50

Please sign in to comment.