From 27813bd1e9aac9925fcc0abcecef36412a7fcad0 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 28 Jun 2023 13:43:20 +0200 Subject: [PATCH] Remove unnecessary statement --- 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 d2d0648d..789376f4 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -108,7 +108,7 @@ class Context { [void] RegisterReboot([Microsoft.Win32.RegistryKey] $userKey) { $runOnceKey = $this.GetRunOnceKey($userKey); - $null = Set-ItemProperty -Path $runOnceKey.PSPath -Name $this.RunOnceName -Value "pwsh `"$($this.EntryPoint)`"" -Type "ExpandString"; + Set-ItemProperty -Path $runOnceKey.PSPath -Name $this.RunOnceName -Value "pwsh `"$($this.EntryPoint)`"" -Type "ExpandString"; $runOnceKey.Handle.Close(); }