Skip to content

Commit 2ff09cf

Browse files
committed
Improve code quality
1 parent 4749ca2 commit 2ff09cf

File tree

1 file changed

+3
-8
lines changed
  • Plugins/Flow.Launcher.Plugin.Program

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,7 @@ private static async Task DisableProgramAsync(IProgram programToDelete)
413413
_uwpsLock.Release();
414414

415415
// Reindex UWP programs
416-
_ = Task.Run(() =>
417-
{
418-
_ = IndexUwpProgramsAsync();
419-
});
416+
_ = Task.Run(IndexUwpProgramsAsync);
420417
return;
421418
}
422419
else
@@ -433,10 +430,8 @@ private static async Task DisableProgramAsync(IProgram programToDelete)
433430
_win32sLock.Release();
434431

435432
// Reindex Win32 programs
436-
_ = Task.Run(() =>
437-
{
438-
_ = IndexWin32ProgramsAsync();
439-
});
433+
_ = Task.Run(IndexWin32ProgramsAsync);
434+
return;
440435
}
441436
else
442437
{

0 commit comments

Comments
 (0)