From 86dc4955d359e814377a75173a0dc10c65e498a5 Mon Sep 17 00:00:00 2001 From: Alex Snaps Date: Mon, 28 Oct 2024 08:56:00 -0400 Subject: [PATCH] Fix null, not needed Signed-off-by: Alex Snaps --- pkg/evaluators/identity.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkg/evaluators/identity.go b/pkg/evaluators/identity.go index 01608d47..0bce9cbf 100644 --- a/pkg/evaluators/identity.go +++ b/pkg/evaluators/identity.go @@ -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