Remove redundant else/return block

Fixes #1741
This commit is contained in:
Wei Jin 2014-05-12 20:55:54 +08:00 committed by antirez
parent d01968b9ad
commit cd34efc562

View File

@ -205,8 +205,6 @@ int zslDelete(zskiplist *zsl, double score, robj *obj) {
zslDeleteNode(zsl, x, update); zslDeleteNode(zsl, x, update);
zslFreeNode(x); zslFreeNode(x);
return 1; return 1;
} else {
return 0; /* not found */
} }
return 0; /* not found */ return 0; /* not found */
} }