From a79a330e2a3dede62356262688517daa4d218dfe Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 29 Jun 2023 19:11:41 +0200 Subject: [PATCH] Mute unwanted output --- scripts/Windows/Scripts/Context.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {