mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Return Array.Empty instead of collection [] (#25137)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user