From c14ad0f27b1f7343765ff28b8a09c048cbb749f4 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Fri, 7 Jul 2023 02:07:33 +0200 Subject: [PATCH] Cleanup code comment Signed-off-by: Tim Vaillancourt --- stats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats.go b/stats.go index a66a7fa..570372b 100644 --- a/stats.go +++ b/stats.go @@ -21,8 +21,8 @@ import ( type statsHandlerFunc func(listen, path string) http.Handler // startStats initializes stats from config. On success, if any further work -// is needed to serve stats, it returns an http.Handler for that work. If no -// work is needed, it'll return nil. On failure, it returns nil, error. +// is needed to serve stats, it returns an statsHandlerFunc for that work. If +// no work is needed, it'll return nil. On failure, it returns nil, error. func startStats(l *logrus.Logger, c *config.C, listen, buildVersion string, configTest bool) (f statsHandlerFunc, err error) { mType := c.GetString("stats.type", "") if mType == "" || mType == "none" {