summaryrefslogtreecommitdiff
path: root/src/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/match.c')
-rw-r--r--src/match.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/match.c b/src/match.c
index 8a71df9..c028b87 100644
--- 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).