diff options
author | David Robillard <d@drobilla.net> | 2020-12-31 14:07:31 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-31 14:07:31 +0100 |
commit | 7a51f0b8e95d29b5e053db97bf72094e847ee7ef (patch) | |
tree | 388ce4b62ee033777125370be4105c5b8aa8b2df /src/zix | |
parent | a5a72832c05ba2894d90def0b74128a93dcca937 (diff) | |
download | lilv-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.c | 4 |
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; |