diff --git a/pkg/rbac/policy/conditions.go b/pkg/rbac/policy/conditions.go index 8a9eef6..91334c0 100644 --- a/pkg/rbac/policy/conditions.go +++ b/pkg/rbac/policy/conditions.go @@ -192,5 +192,5 @@ func (c *InMapCondition[K, V]) Check(r *restrict.AccessRequest) error { } func init() { - restrict.RegisterConditionFactory(SubmitterEqualConditionType, SubmitterEqualConditionFactory) + _ = restrict.RegisterConditionFactory(SubmitterEqualConditionType, SubmitterEqualConditionFactory) } diff --git a/pkg/server/server.go b/pkg/server/server.go index 9aa0efb..a2553d7 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -148,7 +148,7 @@ func New(ctx context.Context, cfg *config.Configuration) (*Server, error) { srv.setupRoutes() 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)) return nil })