From 70db600c9fb3d104dcf4eb7f2bb2c256a677cc24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BC=98=E9=9F=AC?= Date: Mon, 8 Feb 2021 12:56:40 +0800 Subject: [PATCH] optimize format --- .../Programs/Win32.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs index 48b0c4c32..c1de4b5da 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs @@ -401,7 +401,10 @@ namespace Flow.Launcher.Plugin.Program.Programs return entry; } - public static IEnumerable ExceptDisabledSource(IEnumerable sources) => ExceptDisabledSource(sources, x => x); + public static IEnumerable ExceptDisabledSource(IEnumerable sources) + { + return ExceptDisabledSource(sources, x => x); + } public static IEnumerable ExceptDisabledSource(IEnumerable sources, Func keySelector) @@ -427,9 +430,15 @@ namespace Flow.Launcher.Plugin.Program.Programs { public static readonly Win32ComparatorWithDescription Default = new Win32ComparatorWithDescription(); - public bool Equals(Win32 x, Win32 y) => x?.Description == y?.Description; + public bool Equals(Win32 x, Win32 y) + { + return x?.Description == y?.Description; + } - public int GetHashCode(Win32 obj) => obj.Description.GetHashCode(); + public int GetHashCode(Win32 obj) + { + return obj.Description.GetHashCode(); + } } private static Win32[] ProgramsHasher(IEnumerable programs)