Return Array.Empty instead of collection [] (#25137)

This commit is contained in:
Armaan Mcleod
2025-03-07 22:10:16 +05:00
committed by GitHub
parent f7ae4229dc
commit 210ca8325a
@@ -2692,7 +2692,7 @@ namespace Microsoft.PowerShell.Commands
// -Verb is not supported on non-Windows platforms as well as Windows headless SKUs
if (!Platform.IsWindowsDesktop)
{
return [];
return Array.Empty<CompletionResult>();
}
// Completion: Start-Process -FilePath <path> -Verb <wordToComplete>
@@ -2726,7 +2726,7 @@ namespace Microsoft.PowerShell.Commands
}
}
return [];
return Array.Empty<CompletionResult>();
}
/// <summary>