Fix linter (#1647)

This commit is contained in:
Anbraten
2023-03-18 20:35:27 +01:00
committed by GitHub
parent af2ef30205
commit fa5b0fb96e
37 changed files with 180 additions and 280 deletions

View File

@@ -37,7 +37,7 @@ func init() {
http.HandleFunc("/version", handleVersion)
}
func handleHeartbeat(w http.ResponseWriter, r *http.Request) {
func handleHeartbeat(w http.ResponseWriter, _ *http.Request) {
if counter.Healthy() {
w.WriteHeader(200)
} else {
@@ -45,7 +45,7 @@ func handleHeartbeat(w http.ResponseWriter, r *http.Request) {
}
}
func handleVersion(w http.ResponseWriter, r *http.Request) {
func handleVersion(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(200)
w.Header().Add("Content-Type", "text/json")
_ = json.NewEncoder(w).Encode(versionResp{
@@ -54,7 +54,7 @@ func handleVersion(w http.ResponseWriter, r *http.Request) {
})
}
func handleStats(w http.ResponseWriter, r *http.Request) {
func handleStats(w http.ResponseWriter, _ *http.Request) {
if counter.Healthy() {
w.WriteHeader(200)
} else {