Skip to content

Commit 251587d

Browse files
Restore brackets to type for collection (#739)
1 parent b73af24 commit 251587d

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/Transform/TransformBase.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,6 @@ commandInfo is CmdletInfo ||
101101
private string GetAdjustedTypename(Type t, bool simplify = false)
102102
{
103103
string tName = simplify ? LanguagePrimitives.ConvertTo<string>(t) : t.FullName;
104-
if (tName.EndsWith("[]"))
105-
{
106-
tName = FixUpTypeName(tName);
107-
}
108-
109104
return tName;
110105
}
111106

test/Pester/ConvertToCommandHelp.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Describe "New-CommandHelp tests" {
175175
It "Should have the input type '<type>'" -TestCases @(
176176
@{ Type = "System.Management.Automation.CommandTypes" }
177177
@{ Type = "System.Int32" }
178-
@{ Type = "Microsoft.PowerShell.Commands.ModuleSpecification" }
178+
@{ Type = "Microsoft.PowerShell.Commands.ModuleSpecification[]" }
179179
@{ Type = "System.String" }
180180
@{ Type = "System.Management.Automation.SwitchParameter" }
181181
) {

0 commit comments

Comments
 (0)