Skip to content

Commit

Permalink
fix: changed preview pattern matching
Browse files Browse the repository at this point in the history
  • Loading branch information
aochmann committed May 27, 2021
1 parent 21c76c6 commit fa6ba96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Cogworks.Essentials/Services/MemoryCacheService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private void RemoveCacheKeyFromCacheKeysDefinitions(string cacheKey)

private void CacheCallback(object key, object value, EvictionReason reason, object state)
{
if (reason == EvictionReason.Replaced || key is not string cacheKey)
if (reason == EvictionReason.Replaced || !(key is string cacheKey))
{
return;
}
Expand Down

0 comments on commit fa6ba96

Please sign in to comment.