Skip to content

Commit

Permalink
Fix null, not needed
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Snaps <[email protected]>
  • Loading branch information
alexsnaps committed Oct 28, 2024
1 parent a51c18b commit 86dc495
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pkg/evaluators/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,11 @@ func (config *IdentityConfig) ResolveExtendedProperties(pipeline auth.AuthPipeli
authJSON := pipeline.GetAuthorizationJSON()

for _, extendedProperty := range config.ExtendedProperties {
if extendedProperty.Value != nil {
resolved, err := extendedProperty.ResolveFor(extendedIdentityObject, authJSON)
if err != nil {
return nil, err
}
extendedIdentityObject[extendedProperty.Name] = resolved
resolved, err := extendedProperty.ResolveFor(extendedIdentityObject, authJSON)
if err != nil {
return nil, err
}
extendedIdentityObject[extendedProperty.Name] = resolved
}

return extendedIdentityObject, nil
Expand Down

0 comments on commit 86dc495

Please sign in to comment.