Mute unwanted output
This commit is contained in:
parent
7f71def89e
commit
a79a330e2a
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue