Skip to content

Commit

Permalink
Trying to fix things
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Snaps <[email protected]>
  • Loading branch information
alexsnaps committed Oct 24, 2024
1 parent 0707d5e commit 49c9c42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/evaluators/identity/plain.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ type Plain struct {
}

func (p *Plain) Call(pipeline auth.AuthPipeline, ctx context.Context) (interface{}, error) {
if object, err := p.Value.ResolveFor(pipeline.GetAuthorizationJSON()); object != nil {
return object, nil
} else if err != nil {
if object, err := p.Value.ResolveFor(pipeline.GetAuthorizationJSON()); err != nil {
return nil, err
} else if object != nil {
return object, nil
}
return nil, fmt.Errorf("could not retrieve identity object or null")
}
Expand Down

0 comments on commit 49c9c42

Please sign in to comment.