Skip to content

Commit 17d0182

Browse files
committedApr 27, 2020
add return
1 parent a5e12fa commit 17d0182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎include/cppredis/client.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ namespace cpp_redis {
243243
return false;
244244
}
245245

246-
client_->rename_key(std::move(keys_[0]), std::move(keys_[1]));
246+
return client_->rename_key(std::move(keys_[0]), std::move(keys_[1]));
247247
}
248248

249249
//会判断new_key是否存在
@@ -260,7 +260,7 @@ namespace cpp_redis {
260260
return false;
261261
}
262262

263-
client_->renamenx_key(std::move(keys_[0]), std::move(keys_[1]));
263+
return client_->renamenx_key(std::move(keys_[0]), std::move(keys_[1]));
264264
}
265265

266266
template<typename T1,typename T2>

0 commit comments

Comments
 (0)
Failed to load comments.