From 46b202f267a9a1163dfdf331346611deaeb535cb Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Sat, 29 Jun 2024 11:09:12 +0200 Subject: [PATCH] [searcheverywhere] Remove redundant null check GitOrigin-RevId: 154194be770091ed4d5820e8697a5ff5e55085ff --- .../actions/searcheverywhere/RecentFilesSEContributor.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/RecentFilesSEContributor.java b/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/RecentFilesSEContributor.java index abc3e0d8b37e..048172524e8d 100644 --- a/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/RecentFilesSEContributor.java +++ b/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/RecentFilesSEContributor.java @@ -56,10 +56,6 @@ public final class RecentFilesSEContributor extends FileSearchEverywhereContribu public void fetchWeightedElements(@NotNull String pattern, @NotNull ProgressIndicator progressIndicator, @NotNull Processor> consumer) { - if (myProject == null) { - return; //nothing to search - } - String searchString = filterControlSymbols(pattern); boolean preferStartMatches = !searchString.startsWith("*"); MinusculeMatcher matcher = createMatcher(searchString, preferStartMatches);