Browse code

Remove unecessary has_match test

John Hawthorn authored on 14/09/2014 06:43:40
Showing 1 changed files

  • match.c index 26151db..125106d 100644
... ...
@@ -172,8 +172,6 @@ double calculate_score(const char *needle, const char *haystack, size_t *positio
172 172
 double match_positions(const char *needle, const char *haystack, size_t *positions){
173 173
 	if(!*needle){
174 174
 		return SCORE_MAX;
175
-	}else if(!has_match(needle, haystack)){
176
-		return SCORE_MIN;
177 175
 	}else if(!strcasecmp(needle, haystack)){
178 176
 		if(positions){
179 177
 			int n = strlen(needle);