Correct parameter reference passed to exception (#15580)

This commit is contained in:
Al Idian 2021-06-15 10:29:31 -07:00 committed by GitHub
parent 7b933d0cc3
commit 6eae114f5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ namespace System.Management.Automation
{
if (command == null)
{
throw PSTraceSource.NewArgumentNullException("cmdlet");
throw PSTraceSource.NewArgumentNullException(nameof(command));
}
if (_owner != null)