Skip to content

Commit

Permalink
Fixed bug with properties array
Browse files Browse the repository at this point in the history
Changed element 0 for display purposes when $null passed
  • Loading branch information
guyrleech authored Sep 23, 2024
1 parent 1437e69 commit 706956e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Get Process Relatives.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Write-Verbose -Message "Got $($script:runningServices.Count) running service pid
Add-Member -InputObject $item -MemberType NoteProperty -Name IndentedName -Value ("$($indenter * ($levelRange.Maximum - $item.level) * $indentMultiplier)$($item.name)")
}
}
else ## not indenting
elseif( $null -ne $properties -and $properties.Count -gt 0 ) ## not indenting
{
$properties[ 0 ] = 'Name'
}
Expand Down

0 comments on commit 706956e

Please sign in to comment.