Skip to content

Commit 55bc7cd

Browse files
formatting
1 parent 187b195 commit 55bc7cd

File tree

1 file changed

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

1 file changed

+4
-3
lines changed

Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ private static Win32 ExeProgram(string path)
357357
}
358358
}
359359

360-
private static IEnumerable<string> ProgramPaths(string directory, string[] suffixes, bool recursive=true)
360+
private static IEnumerable<string> ProgramPaths(string directory, string[] suffixes, bool recursive = true)
361361
{
362362
if (!Directory.Exists(directory))
363363
return Enumerable.Empty<string>();
@@ -422,13 +422,14 @@ private static IEnumerable<Win32> StartMenuPrograms(string[] suffixes)
422422
private static IEnumerable<Win32> PATHPrograms(string[] suffixes)
423423
{
424424
var pathEnv = Environment.GetEnvironmentVariable("Path");
425-
if (String.IsNullOrEmpty(pathEnv)) {
425+
if (String.IsNullOrEmpty(pathEnv))
426+
{
426427
return Array.Empty<Win32>();
427428
}
428429

429430
var paths = pathEnv.Split(";", StringSplitOptions.RemoveEmptyEntries).DistinctBy(p => p.ToLowerInvariant());
430431

431-
var toFilter = paths.SelectMany(p => ProgramPaths(p, suffixes, recursive:false));
432+
var toFilter = paths.SelectMany(p => ProgramPaths(p, suffixes, recursive: false));
432433

433434
var programs = ExceptDisabledSource(toFilter.Distinct())
434435
.Select(x => Extension(x) switch

0 commit comments

Comments
 (0)