Skip to content

Commit

Permalink
Return empty list instead of throwing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrot committed Dec 30, 2023
1 parent f0f8d19 commit 452ae7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public List<Result> Query(Query query)
{
if (query is null)
{
throw new ArgumentNullException(nameof(query));
return new List<Result>();
}

var results = new List<Result>();
Expand Down

0 comments on commit 452ae7f

Please sign in to comment.