From aaa9ccde075c4b8f77bf317e577b925ec1fcb65a Mon Sep 17 00:00:00 2001 From: tylitianrui Date: Tue, 25 May 2021 10:28:36 +0800 Subject: [PATCH] fix --- debug.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug.go b/debug.go index 038be3cf..b3223a82 100644 --- a/debug.go +++ b/debug.go @@ -31,9 +31,9 @@ func debugPrintRoute(httpMethod, absolutePath string, handlers HandlersChain) { handlerName := nameOfFunction(handlers.Last()) if DebugPrintRouteFunc == nil { debugPrint("%-6s %-25s --> %s (%d handlers)\n", httpMethod, absolutePath, handlerName, nuHandlers) - } else { - DebugPrintRouteFunc(httpMethod, absolutePath, handlerName, nuHandlers) + return } + DebugPrintRouteFunc(httpMethod, absolutePath, handlerName, nuHandlers) } func debugPrintLoadTemplate(tmpl *template.Template) { if !IsDebugging() {