Skip to content

Commit 6095933

Browse files
committed
simplify condition as per comment
1 parent fe65e7a commit 6095933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Wox.Infrastructure/StringMatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public static MatchResult FuzzySearch(string query, string stringToCompare, Matc
121121
if (currentQuerySubstringCharacterIndex == currentQuerySubstring.Length)
122122
{
123123
// if any of the substrings was not matched then consider as all are not matched
124-
allSubstringsContainedInCompareString = !matchFoundInPreviousLoop ? false : allSubstringsContainedInCompareString;
124+
allSubstringsContainedInCompareString = matchFoundInPreviousLoop && allSubstringsContainedInCompareString;
125125

126126
currentQuerySubstringIndex++;
127127

0 commit comments

Comments
 (0)