From 5fd89561d040114570f8be13dbb1d737012e1047 Mon Sep 17 00:00:00 2001 From: Damir Ainullin Date: Thu, 12 Mar 2020 16:53:45 +0000 Subject: [PATCH] Remove unreachable DSC code (#12076) * Remove unreachable code * Update src/System.Management.Automation/DscSupport/CimDSCParser.cs Co-Authored-By: Ilya Co-authored-by: Ilya --- src/System.Management.Automation/DscSupport/CimDSCParser.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/System.Management.Automation/DscSupport/CimDSCParser.cs b/src/System.Management.Automation/DscSupport/CimDSCParser.cs index b314aa6087..dcf52a1ad0 100644 --- a/src/System.Management.Automation/DscSupport/CimDSCParser.cs +++ b/src/System.Management.Automation/DscSupport/CimDSCParser.cs @@ -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 "; } } -