mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 02:09:15 +02:00
authorize: remove a nolint directive (#4375)
This commit is contained in:
parent
8e4f728c11
commit
26bbcdfe07
1 changed files with 3 additions and 2 deletions
|
@ -98,12 +98,13 @@ func New(ctx context.Context, store *store.Store, options ...Option) (*Evaluator
|
||||||
}
|
}
|
||||||
|
|
||||||
e.policyEvaluators = make(map[uint64]*PolicyEvaluator)
|
e.policyEvaluators = make(map[uint64]*PolicyEvaluator)
|
||||||
for _, configPolicy := range cfg.policies {
|
for i := range cfg.policies {
|
||||||
|
configPolicy := cfg.policies[i]
|
||||||
id, err := configPolicy.RouteID()
|
id, err := configPolicy.RouteID()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("authorize: error computing policy route id: %w", err)
|
return nil, fmt.Errorf("authorize: error computing policy route id: %w", err)
|
||||||
}
|
}
|
||||||
policyEvaluator, err := NewPolicyEvaluator(ctx, store, &configPolicy) //nolint
|
policyEvaluator, err := NewPolicyEvaluator(ctx, store, &configPolicy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue