Skip to content

Commit 1734e74

Browse files
author
Kapil Borle
committed
Remove duplicate element return in new-commandatafile
1 parent ae89fe1 commit 1734e74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utils/New-CommandDataFile.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ $shortModuleInfos = Get-ChildItem -Path $builtinModulePath `
8484
$commands = Get-Command -Module $module
8585
$shortCommands = $commands | select -Property Name,@{Label='CommandType';Expression={$_.CommandType.ToString()}},ParameterSets
8686
$shortModuleInfo = $module | select -Property Name,@{Label='Version';Expression={$_.Version.ToString()}}
87-
Add-Member -InputObject $shortModuleInfo -NotePropertyName 'ExportedCommands' -NotePropertyValue $shortCommands -PassThru
87+
Add-Member -InputObject $shortModuleInfo -NotePropertyName 'ExportedCommands' -NotePropertyValue $shortCommands
8888
Add-Member -InputObject $shortModuleInfo -NotePropertyName 'ExportedAliases' -NotePropertyValue $module.ExportedAliases.Keys -PassThru
8989
}
9090
}

0 commit comments

Comments
 (0)