mirror of
https://github.com/restic/restic.git
synced 2025-03-13 14:30:52 +00:00
prune: remove Backend.IsNotExist()
Only handling one specific error is not particularly useful.
This commit is contained in:
parent
9795198189
commit
8274f5b101
@ -285,10 +285,6 @@ func getUsedBlobs(ctx context.Context, repo restic.Repository, ignoreSnapshots r
|
|||||||
|
|
||||||
err = restic.FindUsedBlobs(ctx, repo, snapshotTrees, usedBlobs, bar)
|
err = restic.FindUsedBlobs(ctx, repo, snapshotTrees, usedBlobs, bar)
|
||||||
if err != nil {
|
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 nil, err
|
||||||
}
|
}
|
||||||
return usedBlobs, nil
|
return usedBlobs, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user