diff --git a/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/HashCacheStore.java b/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/HashCacheStore.java index 2e644ac..daf4633 100644 --- a/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/HashCacheStore.java +++ b/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/HashCacheStore.java @@ -109,7 +109,7 @@ public abstract class HashCacheStore implements CacheStore, Cleanable { AtomicLong cleanCount = new AtomicLong(0); cacheMap.keySet().removeIf(key -> { CacheItem item = cacheMap.get(key); - if (item != null && item.isExpire(currentDate)) { + if (item.isExpire(currentDate)) { cleanCount.incrementAndGet(); return true; }