fix: 移除无用的null check

This commit is contained in:
status102
2023-10-19 00:47:57 +08:00
committed by GitHub
parent ee0128667e
commit 9fffc04428

View File

@@ -254,7 +254,7 @@ namespace MaaWpfGui.ViewModels.UI
/// <returns>关卡名 or string.Empty</returns>
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;
}