From b38ffef23c30fe4b4be4004e353de499a0fde92b Mon Sep 17 00:00:00 2001 From: Oren Nachman Date: Mon, 8 Aug 2022 17:48:17 -0700 Subject: [PATCH] Remove spuriously added discard (_=) for void call Intellisense for the non-win --- Flow.Launcher.Infrastructure/Storage/BinaryStorage.cs | 2 +- Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher.Infrastructure/Storage/BinaryStorage.cs b/Flow.Launcher.Infrastructure/Storage/BinaryStorage.cs index b0af1974f..ea2d42773 100644 --- a/Flow.Launcher.Infrastructure/Storage/BinaryStorage.cs +++ b/Flow.Launcher.Infrastructure/Storage/BinaryStorage.cs @@ -114,5 +114,5 @@ namespace Flow.Launcher.Infrastructure.Storage } } } -#pragma warning enable SYSLIB0011 +#pragma warning restore SYSLIB0011 } diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs index d0118f3c9..5e43d4d78 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs @@ -157,8 +157,8 @@ namespace Flow.Launcher.Plugin.Program.Programs #if !DEBUG catch (Exception e) { - _ = ProgramLogger.LogException($"|UWP|All|{p.InstalledLocation}|An unexpected error occured and " + $"unable to convert Package to UWP for {p.Id.FullName}", e); - return new Application[] { }; + ProgramLogger.LogException($"|UWP|All|{p.InstalledLocation}|An unexpected error occured and " + $"unable to convert Package to UWP for {p.Id.FullName}", e); + return Array.Empty(); } #endif #if DEBUG //make developer aware and implement handling