From ebbc6298da79fc314dc11c3b3654af2e1af5272a Mon Sep 17 00:00:00 2001 From: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> Date: Tue, 30 Dec 2025 00:37:30 +0800 Subject: [PATCH] Improve code readablility --- .../Search/Everything/EverythingSearchManager.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingSearchManager.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingSearchManager.cs index bb2fc4425..da5b9f426 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingSearchManager.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingSearchManager.cs @@ -98,9 +98,6 @@ namespace Flow.Launcher.Plugin.Explorer.Search.Everything return search; var typesList = allowedResultTypes as IList ?? allowedResultTypes.ToList(); - if (typesList.Count == 0 || typesList.Count == 3) - return search; // No filtering needed - var hasFile = typesList.Contains(ResultType.File); var hasFolder = typesList.Contains(ResultType.Folder); var hasVolume = typesList.Contains(ResultType.Volume); @@ -113,7 +110,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search.Everything (true, true, false) => "", (true, false, true) => "", (false, true, true) => "", - _ => null + _ => null // No filtering needed when all allowed or unspecified }; return filter == null ? search : $"{filter} {search}";