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 09:53:45 -07:00
committed by GitHub
co-authored by Ilya
parent 5f46605a21
commit 5fd89561d0
@@ -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
";
}
}