diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index d0d5d4e8..1ed65369 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -25,7 +25,7 @@ class Context { [Microsoft.Win32.RegistryKey] EnsureConfigKey() { if (-not (Test-Path $this.ConfigRoot)) { - New-Item $this.ConfigRoot; + $null = New-Item $this.ConfigRoot; } return Get-Item $this.ConfigRoot; @@ -42,12 +42,12 @@ class Context { [void] Set([string] $key, $value, [Microsoft.Win32.RegistryValueKind] $type) { $configKey = $this.EnsureConfigKey(); - $configKey.SetValue($key, $value, $type); + $null = $configKey.SetValue($key, $value, $type); } [void] Remove([string] $key) { $configKey = $this.EnsureConfigKey(); - $configKey.DeleteValue($key); + $null = $configKey.DeleteValue($key); } [void] SetStage([string] $name) {