diff --git a/AsbCloudInfrastructure/Services/Cache/CacheTable.cs b/AsbCloudInfrastructure/Services/Cache/CacheTable.cs index 20a3acba..a17a455c 100644 --- a/AsbCloudInfrastructure/Services/Cache/CacheTable.cs +++ b/AsbCloudInfrastructure/Services/Cache/CacheTable.cs @@ -74,7 +74,7 @@ namespace AsbCloudInfrastructure.Services.Cache return true; } - if ((!cached.Any()) && (refreshMode == RefreshMode.IfResultEmpty)) + if ((refreshMode == RefreshMode.IfResultEmpty) && !cached.Any()) { Refresh(); return true; @@ -91,7 +91,7 @@ namespace AsbCloudInfrastructure.Services.Cache return true; } - if ((!cached.Any()) && (refreshMode == RefreshMode.IfResultEmpty)) + if (refreshMode == RefreshMode.IfResultEmpty && !cached.Any()) { await RefreshAsync(token); return true;