diff --git a/src/functions/secrets/Close-Secret.ps1 b/src/functions/secrets/Close-Secret.ps1 index be157e70..64e5fbf5 100644 --- a/src/functions/secrets/Close-Secret.ps1 +++ b/src/functions/secrets/Close-Secret.ps1 @@ -90,7 +90,6 @@ function Close-Secret { if ($protectParams.ContainsKey('TssSession') -and $TssSession.IsValidSession()) { . $CheckVersion $TssSession '10.9.000000' $PSCmdlet.MyInvocation foreach ($secret in $Id) { - $restResponse = $null $uri = $TssSession.ApiUrl, 'secrets', $secret, 'check-in' -join '/' $invokeParams.Uri = $uri $invokeParams.Method = 'POST'