forked from ddrilling/AsbCloudServer
Fixed if() expression in CacheTable.Refresh()
This commit is contained in:
parent
8ad98027cb
commit
614519c3c8
@ -74,7 +74,7 @@ namespace AsbCloudInfrastructure.Services.Cache
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!cached.Any()) && (refreshMode == RefreshMode.IfResultEmpty))
|
if ((refreshMode == RefreshMode.IfResultEmpty) && !cached.Any())
|
||||||
{
|
{
|
||||||
Refresh();
|
Refresh();
|
||||||
return true;
|
return true;
|
||||||
@ -91,7 +91,7 @@ namespace AsbCloudInfrastructure.Services.Cache
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!cached.Any()) && (refreshMode == RefreshMode.IfResultEmpty))
|
if (refreshMode == RefreshMode.IfResultEmpty && !cached.Any())
|
||||||
{
|
{
|
||||||
await RefreshAsync(token);
|
await RefreshAsync(token);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user