From 351b491a2add861e1926cb6672a74bf886ae1d1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Filip?= Date: Fri, 28 Jun 2024 09:38:46 +0200 Subject: [PATCH] formatting --- .../Authentication/ApiKeyAuthenticationService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BaGetter.Core/Authentication/ApiKeyAuthenticationService.cs b/src/BaGetter.Core/Authentication/ApiKeyAuthenticationService.cs index 572ce917..1a7cfb54 100644 --- a/src/BaGetter.Core/Authentication/ApiKeyAuthenticationService.cs +++ b/src/BaGetter.Core/Authentication/ApiKeyAuthenticationService.cs @@ -26,8 +26,8 @@ public Task 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)); } }