Skip to content

Commit af07c38

Browse files
committed
cleanup code
1 parent c6a47b0 commit af07c38

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Search/Everything/EverythingSearchManager.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
using System;
2-
using Flow.Launcher.Plugin.Explorer.Search.WindowsIndex;
32
using System.Collections.Generic;
43
using System.Diagnostics;
5-
using System.Diagnostics.CodeAnalysis;
6-
using System.Linq;
74
using System.Runtime.CompilerServices;
85
using System.Threading;
96
using System.Threading.Tasks;
107
using Flow.Launcher.Plugin.Explorer.Exceptions;
11-
using Flow.Launcher.Plugin.Explorer.Search.Everything.Exceptions;
128
using Flow.Launcher.Plugin.Explorer.Search.IProvider;
139

1410
namespace Flow.Launcher.Plugin.Explorer.Search.Everything
@@ -31,12 +27,12 @@ private async ValueTask ThrowIfEverythingNotAvailableAsync(CancellationToken tok
3127
Enum.GetName(Settings.IndexSearchEngineOption.Everything)!,
3228
Main.Context.API.GetTranslation("flowlauncher_plugin_everything_click_to_launch_or_install"),
3329
Main.Context.API.GetTranslation("flowlauncher_plugin_everything_is_not_running"),
34-
ClickToInstallEverything)
30+
ClickToInstallEverythingAsync)
3531
{
3632
ErrorIcon = Constants.EverythingErrorImagePath
3733
};
3834
}
39-
catch (DllNotFoundException e)
35+
catch (DllNotFoundException)
4036
{
4137
throw new EngineNotAvailableException(
4238
Enum.GetName(Settings.IndexSearchEngineOption.Everything)!,
@@ -47,7 +43,7 @@ private async ValueTask ThrowIfEverythingNotAvailableAsync(CancellationToken tok
4743
};
4844
}
4945
}
50-
private async ValueTask<bool> ClickToInstallEverything(ActionContext _)
46+
private async ValueTask<bool> ClickToInstallEverythingAsync(ActionContext _)
5147
{
5248
var installedPath = await EverythingDownloadHelper.PromptDownloadIfNotInstallAsync(Settings.EverythingInstalledPath, Main.Context.API);
5349
if (installedPath == null)
@@ -75,7 +71,7 @@ public async IAsyncEnumerable<SearchResult> ContentSearchAsync(string plainSearc
7571
await ThrowIfEverythingNotAvailableAsync(token);
7672
if (!Settings.EnableEverythingContentSearch)
7773
{
78-
throw new EngineNotAvailableException(Enum.GetName(Settings.IndexSearchEngineOption.Everything),
74+
throw new EngineNotAvailableException(Enum.GetName(Settings.IndexSearchEngineOption.Everything)!,
7975
"Click to Enable Everything Content Search (only applicable to Everything 1.5+ with indexed content)",
8076
"Everything Content Search is not enabled.",
8177
_ =>

0 commit comments

Comments
 (0)