Skip to content

Commit

Permalink
✨ 代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunMengLu committed Sep 12, 2024
1 parent 7b0eb41 commit bbc9414
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ public static Object get(String cacheName, String keyPrefix, Object key) {
return null;
}
Cache.ValueWrapper wrapper = getCache(cacheName).get(keyPrefix.concat(String.valueOf(key)));
if (wrapper == null) {
return null;
}
return wrapper.get();
return wrapper == null ? null : wrapper.get();
}

/**
Expand Down

0 comments on commit bbc9414

Please sign in to comment.