From ae96cdf793a6b98a09ea2e2ce43d3ea73aef63d3 Mon Sep 17 00:00:00 2001 From: DismissedLight <1686188646@qq.com> Date: Thu, 18 Jan 2024 23:10:03 +0800 Subject: [PATCH] fix IOE on WAS version check --- src/Snap.Hutao.Deployment/WindowsAppSDKDependency.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Snap.Hutao.Deployment/WindowsAppSDKDependency.cs b/src/Snap.Hutao.Deployment/WindowsAppSDKDependency.cs index 8cc0474..7ccd615 100644 --- a/src/Snap.Hutao.Deployment/WindowsAppSDKDependency.cs +++ b/src/Snap.Hutao.Deployment/WindowsAppSDKDependency.cs @@ -81,7 +81,7 @@ internal static partial class WindowsAppSDKDependency } } - return results.Aggregate((result, element) => result || element); + return results.Count > 0 && results.Aggregate((result, element) => result || element); } private static async Task DownloadWindowsAppRuntimeInstallAndInstallAsync(string version)