From 5bf391d53bbf482fbf0690b3f4f7d13bb3215171 Mon Sep 17 00:00:00 2001 From: some Date: Tue, 8 Oct 2024 19:09:03 -0400 Subject: [PATCH] Fix nil check for server --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index 80f8e0f..0bee885 100644 --- a/router.go +++ b/router.go @@ -33,7 +33,7 @@ func (ro *Router) AddRequiredRoutes(requiredRoutes []string) { return } for _, pattern := range requiredRoutes { - ro.routes[Route{pattern: pattern, required: true}] = &server{} + ro.routes[Route{pattern: pattern, required: true}] = nil } }