Skip to content

Commit d9e01f9

Browse files
committed
Fix null assignment
1 parent 50f77da commit d9e01f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PSModuleDevelopment/functions/utility/Show-PSMDSyntax.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
}
115115

116116
foreach ($parmSet in (Get-Command $commandName).ParameterSets) {
117-
$null = $sb = New-Object System.Text.StringBuilder
117+
$sb = New-Object System.Text.StringBuilder
118118
$null = $sb.AppendLine("ParameterSet Name: <c='em'>$($parmSet.Name)</c> - Validated List")
119119
$null = $sb.Append("<c='$colorCommandName'>$commandName </c>")
120120

@@ -163,7 +163,7 @@
163163
"ShowParameters" {
164164
foreach ($parmSet in (Get-Command $commandName).ParameterSets) {
165165
# (Get-Command $commandName).ParameterSets | ForEach-Object {
166-
$null = $sb = New-Object System.Text.StringBuilder
166+
$sb = New-Object System.Text.StringBuilder
167167
$null = $sb.AppendLine("ParameterSet Name: <c='em'>$($parmSet.Name)</c> - Parameter List")
168168
$null = $sb.Append("<c='$colorCommandName'>$commandName </c>")
169169

0 commit comments

Comments
 (0)