Remove unnecessary code
This commit is contained in:
parent
535d4579a6
commit
b4dd114ba4
1 changed files with 1 additions and 5 deletions
|
@ -50,11 +50,7 @@ function Invoke-WindowsRestore([Context] $context) {
|
||||||
$context.BackupName ??= "PortValhalla";
|
$context.BackupName ??= "PortValhalla";
|
||||||
$context.RootDir = $context.GetTempDirectory();
|
$context.RootDir = $context.GetTempDirectory();
|
||||||
|
|
||||||
if (-not $backupPath)
|
if ($backupPath)
|
||||||
{
|
|
||||||
New-Item -ItemType Directory $context.BackupRoot();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
$context.Restore($backupPath, $context.BackupRoot());
|
$context.Restore($backupPath, $context.BackupRoot());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue