From eb21e61a4f7fba28042f72547cce4e78b806ce45 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sun, 1 Dec 2024 21:56:13 +0100 Subject: [PATCH] monitoring: Use _ for unused function arguments --- monitoring.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoring.go b/monitoring.go index 29231ed..dd5408d 100644 --- a/monitoring.go +++ b/monitoring.go @@ -226,7 +226,7 @@ func exitHandler(srv *http.Server) http.HandlerFunc { } } -func debugFlagsHandler(w http.ResponseWriter, r *http.Request) { +func debugFlagsHandler(w http.ResponseWriter, _ *http.Request) { visited := make(map[string]bool) // Print set flags first, then the rest. @@ -245,7 +245,7 @@ func debugFlagsHandler(w http.ResponseWriter, r *http.Request) { } func debugConfigHandler(conf *config.Config) http.HandlerFunc { - return func(w http.ResponseWriter, r *http.Request) { + return func(w http.ResponseWriter, _ *http.Request) { _, _ = w.Write([]byte(prototext.Format(conf))) } }