Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2018-10-17 15:14:02 +0300
committermichael-grunder <michael.grunder@gmail.com>2018-10-17 15:14:02 +0300
commitd11724260f6d50bbadb1c9e76c89b010d88f7178 (patch)
treeec36b879b1a5cc034468deee3eab7398d69dfade /cluster_library.c
parent07ef7f4e6599e42a5d92f6a1bca5e45290dd745c (diff)
Simplify short-circuit logic
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cluster_library.c b/cluster_library.c
index 2d0cc996..2159a2e6 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -1421,7 +1421,7 @@ PHP_REDIS_API short cluster_send_command(redisCluster *c, short slot, const char
/* Check response and short-circuit on success or communication error */
resp = cluster_check_response(c, &c->reply_type TSRMLS_CC);
- if (resp == 0 || resp == -1) {
+ if (resp <= 0) {
break;
}