Skip to content

Commit

Permalink
Remove unreachable DSC code (PowerShell#12076)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
DamirAinullin and iSazonov committed Mar 12, 2020
1 parent 5f46605 commit 5fd8956
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/System.Management.Automation/DscSupport/CimDSCParser.cs
Expand Up @@ -1233,8 +1233,7 @@ public static List<CimInstance> ImportInstances(string path, int schemaValidatio
{
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 ||
Expand Down Expand Up @@ -4073,4 +4072,3 @@ private static ScriptBlock CimKeywordImplementationFunction
";
}
}

0 comments on commit 5fd8956

Please sign in to comment.