Correct parameter reference passed to exception (#15580)
This commit is contained in:
parent
7b933d0cc3
commit
6eae114f5a
|
@ -89,7 +89,7 @@ namespace System.Management.Automation
|
|||
{
|
||||
if (command == null)
|
||||
{
|
||||
throw PSTraceSource.NewArgumentNullException("cmdlet");
|
||||
throw PSTraceSource.NewArgumentNullException(nameof(command));
|
||||
}
|
||||
|
||||
if (_owner != null)
|
||||
|
|
Loading…
Reference in a new issue