Skip to content

Commit 4fdea6c

Browse files
committed
Improve code quality
1 parent 10c9549 commit 4fdea6c

File tree

1 file changed

+1
-9
lines changed
  • Plugins/Flow.Launcher.Plugin.BrowserBookmark

1 file changed

+1
-9
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,12 @@ private async Task LoadBookmarksInBackgroundAsync()
8686

8787
public async Task<List<Result>> QueryAsync(Query query, CancellationToken token)
8888
{
89+
// If the list is not initialized, we need to wait for the list to be initialized before querying
8990
if (!_isInitialized)
9091
{
91-
// If the list is not initialized, we need to wait for the list to be initialized before querying
9292
await LoadBookmarksInBackgroundAsync();
93-
return QueryResults(query);
9493
}
95-
else
96-
{
97-
return QueryResults(query);
98-
}
99-
}
10094

101-
private static List<Result> QueryResults(Query query)
102-
{
10395
string param = query.Search.TrimStart();
10496
bool topResults = string.IsNullOrEmpty(param);
10597

0 commit comments

Comments
 (0)