代码优化

This commit is contained in:
卢春梦 2024-09-12 11:33:00 +08:00
parent 7b0eb4104d
commit bbc941471f

View File

@ -68,10 +68,7 @@ public class CacheUtil {
return null; return null;
} }
Cache.ValueWrapper wrapper = getCache(cacheName).get(keyPrefix.concat(String.valueOf(key))); Cache.ValueWrapper wrapper = getCache(cacheName).get(keyPrefix.concat(String.valueOf(key)));
if (wrapper == null) { return wrapper == null ? null : wrapper.get();
return null;
}
return wrapper.get();
} }
/** /**