simplify condition as per comment

This commit is contained in:
Jeremy Wu 2020-01-14 07:29:21 +11:00
parent fe65e7a0c4
commit 6095933847

View File

@ -121,7 +121,7 @@ namespace Wox.Infrastructure
if (currentQuerySubstringCharacterIndex == currentQuerySubstring.Length)
{
// if any of the substrings was not matched then consider as all are not matched
allSubstringsContainedInCompareString = !matchFoundInPreviousLoop ? false : allSubstringsContainedInCompareString;
allSubstringsContainedInCompareString = matchFoundInPreviousLoop && allSubstringsContainedInCompareString;
currentQuerySubstringIndex++;