Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
fix: ResumeBackup and NewBackup
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-houille committed Dec 3, 2023
1 parent 12ea1a2 commit c847787
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ public class NewBackupFolderStrategy : IBackupFolderStrategy
{
public List<string> SelectFolders(List<string> folders, string? pausedJob)
{
return new List<string>();
return folders;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ public class ResumeBackupFolderStrategy : IBackupFolderStrategy
{
public List<string> SelectFolders(List<string> folders, string? pausedJob)
{
var selectedFolder = new List<string>();
if (pausedJob != null)
{
selectedFolder.Add(pausedJob);
folders.Add(pausedJob);
}
return selectedFolder;
return folders;
}
}

0 comments on commit c847787

Please sign in to comment.