From bba4c69a2a59a0190bb8f4e6b9914b7a656bba59 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 7 Aug 2021 22:26:09 +0200 Subject: [PATCH] tag: Remove unnecessary flush call --- cmd/restic/cmd_tag.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/restic/cmd_tag.go b/cmd/restic/cmd_tag.go index e6688b2fc..b05cd6e55 100644 --- a/cmd/restic/cmd_tag.go +++ b/cmd/restic/cmd_tag.go @@ -89,10 +89,6 @@ func changeTags(ctx context.Context, repo *repository.Repository, sn *restic.Sna debug.Log("new snapshot saved as %v", id) - if err = repo.Flush(ctx); err != nil { - return false, err - } - // Remove the old snapshot. h := restic.Handle{Type: restic.SnapshotFile, Name: sn.ID().String()} if err = repo.Backend().Remove(ctx, h); err != nil {