mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 10:00:44 +08:00
fix: 移除无用的null check
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user