1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

monitoring: Use _ for unused function arguments

This commit is contained in:
Andreas Deininger
2024-12-01 21:56:13 +01:00
committed by Alberto Bertogli
parent 9dab8f4f04
commit eb21e61a4f

View File

@@ -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)))
}
}