Skip to content

Commit

Permalink
Proper fix for DeepCopy-Object (#245)
Browse files Browse the repository at this point in the history
The previous fix accidentally referenced the parameter as `$InputObject` instead of `$Object`.
  • Loading branch information
HowardWolosky authored Feb 5, 2024
1 parent da7769d commit 388f8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StoreBroker/Helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function DeepCopy-Object
[PSCustomObject] $Object
)

$serialData = [System.Management.Automation.PSSerializer]::Serialize($InputObject, 64)
$serialData = [System.Management.Automation.PSSerializer]::Serialize($Object, 64)
return [System.Management.Automation.PSSerializer]::Deserialize($serialData)
}

Expand Down

0 comments on commit 388f8c8

Please sign in to comment.