diff --git a/src/t_zset.c b/src/t_zset.c index 20ef62e27149..d3c7214bd25f 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -205,8 +205,6 @@ int zslDelete(zskiplist *zsl, double score, robj *obj) { zslDeleteNode(zsl, x, update); zslFreeNode(x); return 1; - } else { - return 0; /* not found */ } return 0; /* not found */ }