Remove unnecessary statement
This commit is contained in:
parent
c90d2f7cdd
commit
6a4ff4645a
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class Context {
|
||||||
|
|
||||||
[void] RegisterReboot([Microsoft.Win32.RegistryKey] $userKey) {
|
[void] RegisterReboot([Microsoft.Win32.RegistryKey] $userKey) {
|
||||||
$runOnceKey = $this.GetRunOnceKey($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();
|
$runOnceKey.Handle.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue