Remove unnecessary code

This commit is contained in:
Manuel Thalmann 2023-06-22 18:40:01 +02:00
parent 535d4579a6
commit b4dd114ba4

View file

@ -50,11 +50,7 @@ function Invoke-WindowsRestore([Context] $context) {
$context.BackupName ??= "PortValhalla";
$context.RootDir = $context.GetTempDirectory();
if (-not $backupPath)
{
New-Item -ItemType Directory $context.BackupRoot();
}
else
if ($backupPath)
{
$context.Restore($backupPath, $context.BackupRoot());
}