lint
This commit is contained in:
parent
f1a5f70a79
commit
e38e17abee
2 changed files with 2 additions and 2 deletions
|
@ -192,5 +192,5 @@ func (c *InMapCondition[K, V]) Check(r *restrict.AccessRequest) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
restrict.RegisterConditionFactory(SubmitterEqualConditionType, SubmitterEqualConditionFactory)
|
_ = restrict.RegisterConditionFactory(SubmitterEqualConditionType, SubmitterEqualConditionFactory)
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,7 @@ func New(ctx context.Context, cfg *config.Configuration) (*Server, error) {
|
||||||
srv.setupRoutes()
|
srv.setupRoutes()
|
||||||
|
|
||||||
if os.Getenv("STILLBOX_DUMP_ROUTES") == "true" {
|
if os.Getenv("STILLBOX_DUMP_ROUTES") == "true" {
|
||||||
chi.Walk(r, func(method string, route string, handler http.Handler, middlewares ...func(http.Handler) http.Handler) error {
|
_ = chi.Walk(r, func(method string, route string, handler http.Handler, middlewares ...func(http.Handler) http.Handler) error {
|
||||||
fmt.Printf("[%s]: '%s' has %d middlewares\n", method, route, len(middlewares))
|
fmt.Printf("[%s]: '%s' has %d middlewares\n", method, route, len(middlewares))
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue