Remove unreachable DSC code (#12076)

* Remove unreachable code

* Update src/System.Management.Automation/DscSupport/CimDSCParser.cs

Co-Authored-By: Ilya <darpa@yandex.ru>

Co-authored-by: Ilya <darpa@yandex.ru>
This commit is contained in:
Damir Ainullin 2020-03-12 16:53:45 +00:00 committed by GitHub
parent 5f46605a21
commit 5fd89561d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1233,8 +1233,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
{
if (string.IsNullOrEmpty(path))
{
throw PSTraceSource.NewArgumentNullException("path");
throw new ArgumentNullException("path");
throw PSTraceSource.NewArgumentNullException(nameof(path));
}
if (schemaValidationOption < (int)Microsoft.Management.Infrastructure.Serialization.MofDeserializerSchemaValidationOption.Default ||
@ -4073,4 +4072,3 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
";
}
}