From 5d0b77035fda29ea6535f0d16540faae2a7c2477 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 30 Jun 2023 04:34:40 +0200 Subject: [PATCH] Refactor removal of configuration values --- scripts/Windows/Scripts/Context.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 8187073c..6943dc63 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -58,7 +58,7 @@ class Context { [void] Remove([string] $key) { $configKey = $this.EnsureConfigKey(); - $null = $configKey.DeleteValue($key); + $null = Remove-ItemProperty -Path $configKey.PSPath -Name $key; } [void] SetStage([string] $name) {