fzy

terminal fuzzy finder picker

git clone https://9o.is/git/fzy.git

commit db66f1e7b223d3a833ef4ac38c5476d490654d05
parent ee19806a5d8f0d9bb887dea7fb9aab99310de813
Author: John Hawthorn <john@hawthorn.email>
Date:   Fri, 27 Dec 2019 17:49:38 -0800

Combine early-return if as else if

Diffstat:
Msrc/match.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/match.c b/src/match.c @@ -83,9 +83,7 @@ score_t match_positions(const char *needle, const char *haystack, size_t *positi * just be ranked below any reasonably sized candidates */ return SCORE_MIN; - } - - if (n == m) { + } else if (n == m) { /* Since this method can only be called with a haystack which * matches needle. If the lengths of the strings are equal the * strings themselves must also be equal (ignoring case).