Skip to content

Commit 992f6d1

Browse files
committed
add allowEqual parameter name to call to make it clearer
1 parent ec58939 commit 992f6d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Flow.Launcher.Test/FilesFoldersTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void GivenTwoPaths_WhenCheckPathContains_ThenShouldBeExpectedResult(strin
4747
[TestCase(@"c:\foo", @"c:\foo\", true)]
4848
public void GivenTwoPathsAreTheSame_WhenCheckPathContains_ThenShouldBeExpectedResult(string parentPath, string path, bool expectedResult)
4949
{
50-
Assert.AreEqual(expectedResult, FilesFolders.PathContains(parentPath, path, expectedResult));
50+
Assert.AreEqual(expectedResult, FilesFolders.PathContains(parentPath, path, allowEqual: expectedResult));
5151
}
5252
}
5353
}

Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ when ActionKeywordMatch(query, Settings.ActionKeyword.IndexSearchActionKeyword)
123123
}
124124

125125
results.RemoveWhere(r => Settings.IndexSearchExcludedSubdirectoryPaths.Any(
126-
excludedPath => FilesFolders.PathContains(excludedPath.Path, r.SubTitle, true)));
126+
excludedPath => FilesFolders.PathContains(excludedPath.Path, r.SubTitle, allowEqual: true)));
127127

128128
return results.ToList();
129129
}

0 commit comments

Comments
 (0)