mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
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:
@@ -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
|
||||
";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user