Mute unwanted output

This commit is contained in:
Manuel Thalmann 2023-06-29 19:11:41 +02:00
parent 33d7d4834c
commit 09b031ff92

View file

@ -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) {