[searcheverywhere] Remove redundant null check

GitOrigin-RevId: 154194be770091ed4d5820e8697a5ff5e55085ff
This commit is contained in:
Tagir Valeev
2024-06-29 11:09:12 +02:00
committed by intellij-monorepo-bot
parent 680c9462df
commit 46b202f267

View File

@@ -56,10 +56,6 @@ public final class RecentFilesSEContributor extends FileSearchEverywhereContribu
public void fetchWeightedElements(@NotNull String pattern,
@NotNull ProgressIndicator progressIndicator,
@NotNull Processor<? super FoundItemDescriptor<Object>> consumer) {
if (myProject == null) {
return; //nothing to search
}
String searchString = filterControlSymbols(pattern);
boolean preferStartMatches = !searchString.startsWith("*");
MinusculeMatcher matcher = createMatcher(searchString, preferStartMatches);