prune: remove Backend.IsNotExist()

Only handling one specific error is not particularly useful.
This commit is contained in:
Michael Eischer 2024-05-10 01:14:02 +02:00
parent 9795198189
commit 8274f5b101
1 changed files with 0 additions and 4 deletions

View File

@ -285,10 +285,6 @@ func getUsedBlobs(ctx context.Context, repo restic.Repository, ignoreSnapshots r
err = restic.FindUsedBlobs(ctx, repo, snapshotTrees, usedBlobs, bar)
if err != nil {
if repo.Backend().IsNotExist(err) {
return nil, errors.Fatal("unable to load a tree from the repository: " + err.Error())
}
return nil, err
}
return usedBlobs, nil