Skip to content

Commit

Permalink
case of $TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
msftrncs committed Oct 4, 2018
1 parent 5ded91d commit ec27a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PList Reader.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function processTree ($node) {
if ($currnode.HasChildNodes) {
if ($currnode.Name -eq 'key') {
# a key in a dictionary, or a single property, either way, add it to a collection
$collection | Add-member -MemberType NoteProperty -name (processTree $currnode.FirstChild) -value (processTree $currnode.NextSibling.CloneNode($TRUE))
$collection | Add-member -MemberType NoteProperty -name (processTree $currnode.FirstChild) -value (processTree $currnode.NextSibling.CloneNode($true))
$currnode = $currnode.NextSibling # skip the next sibling because it was the value of the property
}
elseif ($currnode.Name -in 'string', 'dict') {
Expand Down

0 comments on commit ec27a74

Please sign in to comment.