Skip to content

Commit

Permalink
Remove an unnecessary check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed-Ghanam committed Oct 8, 2024
1 parent 2036783 commit ecb80aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Altinn.Profile/UseCases/ContactDetailsRetriever.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ private Result<ContactDetailsLookupResult, bool> MapToContactDetailsLookupResult

var matchedContactDetails = lookupResult.MatchedPersonContactDetails?.Select(MapToContactDetails).ToImmutableList();

return new ContactDetailsLookupResult(matchedContactDetails, lookupResult?.UnmatchedNationalIdentityNumbers);
return new ContactDetailsLookupResult(matchedContactDetails, lookupResult.UnmatchedNationalIdentityNumbers);
}
}

0 comments on commit ecb80aa

Please sign in to comment.