Merge pull request #7713 from Lyndon-Li/issue-fix-7712

Issue 7712: don't append nil error for BatchForget of Restic path
This commit is contained in:
lyndon-li
2024-04-22 13:05:13 +08:00
committed by GitHub
+3 -1
View File
@@ -82,7 +82,9 @@ func (r *resticRepositoryProvider) BatchForget(ctx context.Context, snapshotIDs
errs := []error{}
for _, snapshot := range snapshotIDs {
err := r.Forget(ctx, snapshot, param)
errs = append(errs, err)
if err != nil {
errs = append(errs, err)
}
}
return errs