From 9fffc044286008ce7e6577dafb6032fa357f5056 Mon Sep 17 00:00:00 2001 From: status102 Date: Thu, 19 Oct 2023 00:47:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84null=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs index 44cfabdaf7..652b8565f7 100644 --- a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs @@ -254,7 +254,7 @@ namespace MaaWpfGui.ViewModels.UI /// 关卡名 or string.Empty private static string FindStageName(params string[] names) { - if (((names = names.Where(str => !str.IsNullOrEmpty()).ToArray())?.Length ?? 0) == 0) + if ((names = names.Where(str => !str.IsNullOrEmpty()).ToArray()).Length == 0) { return string.Empty; }