Skip to content

Commit

Permalink
Simplify short-circuit logic
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-grunder committed Oct 17, 2018
1 parent 07ef7f4 commit d117242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster_library.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d117242

Please sign in to comment.