From 388f8c857a4284599d7e2d14695cbf5871d0d326 Mon Sep 17 00:00:00 2001 From: Howard Wolosky Date: Sun, 4 Feb 2024 20:56:06 -0800 Subject: [PATCH] Proper fix for DeepCopy-Object (#245) The previous fix accidentally referenced the parameter as `$InputObject` instead of `$Object`. --- StoreBroker/Helpers.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StoreBroker/Helpers.ps1 b/StoreBroker/Helpers.ps1 index bf3af2e..04caa5e 100644 --- a/StoreBroker/Helpers.ps1 +++ b/StoreBroker/Helpers.ps1 @@ -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) }