From 8274f5b101d01ade31e108b4ab32333a955d7433 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 10 May 2024 01:14:02 +0200 Subject: [PATCH] prune: remove Backend.IsNotExist() Only handling one specific error is not particularly useful. --- cmd/restic/cmd_prune.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index cbec100df..d62a7df75 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -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