We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 467889a commit 2ffbf73Copy full SHA for 2ffbf73
src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Create-ParameterObject.ps1
@@ -69,12 +69,11 @@ function Create-ParameterObjectImpl
69
{
70
return $null;
71
}
72
- elseif ($typeInfo.Namespace -eq $client_model_namespace)
+ else
73
74
$obj = New-Object $typeInfo.FullName;
75
76
- $properties = $typeInfo.GetProperties();
77
- foreach ($item in $properties)
+ foreach ($item in $typeInfo.GetProperties())
78
79
$prop = [System.Reflection.PropertyInfo]$item;
80
@@ -96,10 +95,6 @@ function Create-ParameterObjectImpl
96
95
97
98
99
- else
100
- {
101
- $obj = New-Object $typeInfo.FullName;
102
- }
103
104
return $obj;
105
0 commit comments