Skip to content

Commit 2ffbf73

Browse files
committed
Update Create-ParameterObject.ps1
1 parent 467889a commit 2ffbf73

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Create-ParameterObject.ps1

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ function Create-ParameterObjectImpl
6969
{
7070
return $null;
7171
}
72-
elseif ($typeInfo.Namespace -eq $client_model_namespace)
72+
else
7373
{
7474
$obj = New-Object $typeInfo.FullName;
7575

76-
$properties = $typeInfo.GetProperties();
77-
foreach ($item in $properties)
76+
foreach ($item in $typeInfo.GetProperties())
7877
{
7978
$prop = [System.Reflection.PropertyInfo]$item;
8079

@@ -96,10 +95,6 @@ function Create-ParameterObjectImpl
9695
}
9796
}
9897
}
99-
else
100-
{
101-
$obj = New-Object $typeInfo.FullName;
102-
}
10398

10499
return $obj;
105100
}

0 commit comments

Comments
 (0)