Skip to content

Commit

Permalink
Merge pull request #117 from gmllt/fix-unused-r-variable
Browse files Browse the repository at this point in the history
Fix golangci linter warning "parameter 'r' seems to be unused"
  • Loading branch information
gmllt committed Feb 17, 2024
2 parents 01f8ea3 + f6bca59 commit 5580c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func main() {

handler := prometheusHandler()
http.Handle(*metricsPath, handler)
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
http.HandleFunc("/", func(w http.ResponseWriter, _ *http.Request) {
_, err := w.Write([]byte(`<html>
<head><title>Cloud Foundry Exporter</title></head>
<body>
Expand Down

0 comments on commit 5580c2c

Please sign in to comment.