forked from TrueCloudLab/restic
prune: remove Backend.IsNotExist()
Only handling one specific error is not particularly useful.
This commit is contained in:
parent
9795198189
commit
8274f5b101
1 changed files with 0 additions and 4 deletions
|
@ -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…
Reference in a new issue