Skip to content

Commit d1e8bbf

Browse files
Remove toarray() in ProgramsHasher
1 parent 37cc01e commit d1e8bbf

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ private static IEnumerable<Win32> ProgramsHasher(IEnumerable<Win32> programs)
553553
if (temp.Any())
554554
return DistinctBy(temp, x => x.Description);
555555
return g.Take(1);
556-
}).ToArray();
556+
});
557557
}
558558

559559

@@ -589,7 +589,7 @@ public static Win32[] All(Settings settings)
589589
autoIndexPrograms = autoIndexPrograms.Concat(path);
590590
}
591591

592-
autoIndexPrograms = ProgramsHasher(autoIndexPrograms);
592+
autoIndexPrograms = ProgramsHasher(autoIndexPrograms).ToArray();
593593

594594
return programs.Concat(autoIndexPrograms).Where(x => x.Valid).Distinct().ToArray();
595595
}

0 commit comments

Comments
 (0)