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 0c5b8b2 commit 2036783
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 @@ -40,7 +40,7 @@ public async Task<Result<ContactDetailsLookupResult, bool>> RetrieveAsync(UserCo
{
ArgumentNullException.ThrowIfNull(lookupCriteria);

if (lookupCriteria?.NationalIdentityNumbers == null || lookupCriteria.NationalIdentityNumbers.Count == 0)
if (lookupCriteria.NationalIdentityNumbers == null || lookupCriteria.NationalIdentityNumbers.Count == 0)
{
return false;
}
Expand Down

0 comments on commit 2036783

Please sign in to comment.