From 6b521df5d01b8de1df0711fa0a18c5cad6419260 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 8 Dec 2024 09:59:20 +0100 Subject: [PATCH] Fix --- src/functions/public/Config/Remove-GitHubConfig.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/public/Config/Remove-GitHubConfig.ps1 b/src/functions/public/Config/Remove-GitHubConfig.ps1 index 4f59c48d..a507b127 100644 --- a/src/functions/public/Config/Remove-GitHubConfig.ps1 +++ b/src/functions/public/Config/Remove-GitHubConfig.ps1 @@ -29,7 +29,7 @@ function Remove-GitHubConfig { process { try { if ($PSCmdlet.ShouldProcess('ContextSetting', 'Remove')) { - $moduleContext.PSObject.Properties.Remove($Name) + $moduleContext.$Name = $null } } catch { Write-Error $_