Fix nil check for server
This commit is contained in:
parent
63f669f03f
commit
5bf391d53b
@ -33,7 +33,7 @@ func (ro *Router) AddRequiredRoutes(requiredRoutes []string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
for _, pattern := range requiredRoutes {
|
for _, pattern := range requiredRoutes {
|
||||||
ro.routes[Route{pattern: pattern, required: true}] = &server{}
|
ro.routes[Route{pattern: pattern, required: true}] = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user