Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfil committed Jun 28, 2024
1 parent 1ba8428 commit 351b491
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public Task<bool> AuthenticateAsync(string apiKey, CancellationToken cancellatio
private bool Authenticate(string apiKey)
{
// No authentication is necessary if there is no required API key.
if (_apiKey == null && (_apiKeys.Length==0)) return true;
if (_apiKey == null && (_apiKeys.Length == 0)) return true;

return _apiKey == apiKey || _apiKeys.Any(x=> x.Key.Equals(apiKey));
return _apiKey == apiKey || _apiKeys.Any(x => x.Key.Equals(apiKey));
}
}

0 comments on commit 351b491

Please sign in to comment.