Skip to content

Commit 969265c

Browse files
committed
fix formatting
1 parent d741a98 commit 969265c

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,14 @@ private void DisableProgram(IProgram programToDelete)
202202
return;
203203

204204
if (_uwps.Any(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier))
205-
_uwps.Where(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier).FirstOrDefault().Enabled =
206-
false;
205+
_uwps.Where(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier)
206+
.FirstOrDefault()
207+
.Enabled = false;
207208

208209
if (_win32s.Any(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier))
209-
_win32s.Where(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier).FirstOrDefault().Enabled =
210-
false;
210+
_win32s.Where(x => x.UniqueIdentifier == programToDelete.UniqueIdentifier)
211+
.FirstOrDefault()
212+
.Enabled = false;
211213

212214
_settings.DisabledProgramSources
213215
.Add(
@@ -241,4 +243,4 @@ public async Task ReloadDataAsync()
241243
await IndexPrograms();
242244
}
243245
}
244-
}
246+
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ private List<Result> Commands()
170170
// http://www.pinvoke.net/default.aspx/shell32/SHEmptyRecycleBin.html
171171
// FYI, couldn't find documentation for this but if the recycle bin is already empty, it will return -2147418113 (0x8000FFFF (E_UNEXPECTED))
172172
// 0 for nothing
173-
var result = SHEmptyRecycleBin(new WindowInteropHelper(Application.Current.MainWindow).Handle,
174-
0);
173+
var result = SHEmptyRecycleBin(new WindowInteropHelper(Application.Current.MainWindow).Handle, 0);
175174
if (result != (uint) HRESULT.S_OK && result != (uint) 0x8000FFFF)
176175
{
177176
MessageBox.Show($"Error emptying recycle bin, error code: {result}\n" +

Plugins/Flow.Launcher.Plugin.WebSearch/SuggestionSources/Bing.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ public override async Task<List<string>> Suggestions(string query, CancellationT
2222
try
2323
{
2424
const string api = "https://api.bing.com/qsonhs.aspx?q=";
25+
2526
using var resultStream = await Http.GetStreamAsync(api + Uri.EscapeUriString(query), token).ConfigureAwait(false);
26-
if (resultStream.Length == 0) return new List<string>(); // this handles the cancellation
27+
28+
if (resultStream.Length == 0)
29+
return new List<string>(); // this handles the cancellation
30+
2731
json = (await JsonDocument.ParseAsync(resultStream, cancellationToken: token)).RootElement.GetProperty("AS");
2832

2933
}

Plugins/Flow.Launcher.Plugin.WebSearch/SuggestionSources/Google.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ public override async Task<List<string>> Suggestions(string query, CancellationT
2121
try
2222
{
2323
const string api = "https://www.google.com/complete/search?output=chrome&q=";
24+
2425
using var resultStream = await Http.GetStreamAsync(api + Uri.EscapeUriString(query)).ConfigureAwait(false);
25-
if (resultStream.Length == 0) return new List<string>();
26+
27+
if (resultStream.Length == 0)
28+
return new List<string>();
29+
2630
json = await JsonDocument.ParseAsync(resultStream);
2731

2832
}

Plugins/Flow.Launcher.Plugin.WebSearch/SuggestionSources/SuggestionSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ public abstract class SuggestionSource
88
{
99
public abstract Task<List<string>> Suggestions(string query, CancellationToken token);
1010
}
11-
}
11+
}

0 commit comments

Comments
 (0)