summaryrefslogtreecommitdiffstats
path: root/src/zix
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-31 14:07:31 +0100
committerDavid Robillard <d@drobilla.net>2020-12-31 14:07:31 +0100
commit7a51f0b8e95d29b5e053db97bf72094e847ee7ef (patch)
tree388ce4b62ee033777125370be4105c5b8aa8b2df /src/zix
parenta5a72832c05ba2894d90def0b74128a93dcca937 (diff)
downloadlilv-7a51f0b8e95d29b5e053db97bf72094e847ee7ef.tar.gz
lilv-7a51f0b8e95d29b5e053db97bf72094e847ee7ef.tar.bz2
lilv-7a51f0b8e95d29b5e053db97bf72094e847ee7ef.zip
Avoid "else" after "return"
Diffstat (limited to 'src/zix')
-rw-r--r--src/zix/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zix/tree.c b/src/zix/tree.c
index 55d39dc..15cea9a 100644
--- a/src/zix/tree.c
+++ b/src/zix/tree.c
@@ -599,7 +599,9 @@ zix_tree_find(const ZixTree* t, const void* e, ZixTreeIter** ti)
const int cmp = t->cmp(e, n->data, t->cmp_data);
if (cmp == 0) {
break;
- } else if (cmp < 0) {
+ }
+
+ if (cmp < 0) {
n = n->left;
} else {
n = n->right;