Skip to content

Commit

Permalink
Update DataLoader.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Nov 13, 2024
1 parent 450dcca commit 4ab0a8c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/AustralianElectorates/DataLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,7 @@ public static bool TryFindElectorate(string name, [NotNullWhen(true)] out IElect
{
Guard.AgainstWhiteSpace(nameof(name), name);
electorate = Electorates.SingleOrDefault(_ => MatchName(name, _));
if (electorate != null)
{
return true;
}

return false;
return electorate != null;
}

static bool MatchName(string name, IElectorate x) =>
Expand Down

0 comments on commit 4ab0a8c

Please sign in to comment.