Skip to content

Commit

Permalink
Merge pull request vmware-tanzu#7713 from Lyndon-Li/issue-fix-7712
Browse files Browse the repository at this point in the history
Issue 7712: don't append nil error for BatchForget of Restic path
  • Loading branch information
Lyndon-Li authored Apr 22, 2024
2 parents 9be2cdb + 776efc4 commit d6a7319
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/repository/provider/restic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6a7319

Please sign in to comment.