diff --git a/redisson/src/main/java/org/redisson/RedissonMap.java b/redisson/src/main/java/org/redisson/RedissonMap.java index 0f172843a..3fffcd3bc 100644 --- a/redisson/src/main/java/org/redisson/RedissonMap.java +++ b/redisson/src/main/java/org/redisson/RedissonMap.java @@ -259,11 +259,8 @@ public class RedissonMap extends RedissonExpirable implements RMap { return CompletableFuture.supplyAsync(() -> remappingFunction.apply(key, oldValue), getServiceManager().getExecutor()) .thenCompose(newValue -> { if (newValue != null) { - if (oldValue != null) { - return fastPutAsync(key, newValue) - .thenApply(rr -> newValue); - } - return CompletableFuture.completedFuture(newValue); + return fastPutAsync(key, newValue) + .thenApply(rr -> newValue); } return fastRemoveAsync(key) .thenApply(rr -> newValue);