From 7a01bd3b674860607f9879f81b28f514a0b2fe2f Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Thu, 18 May 2023 18:08:43 +0200 Subject: [PATCH] Remove unnecessary else block --- internal/restic/snapshot_find.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/restic/snapshot_find.go b/internal/restic/snapshot_find.go index 8d6f8c4b1..b577b0919 100644 --- a/internal/restic/snapshot_find.go +++ b/internal/restic/snapshot_find.go @@ -143,10 +143,10 @@ func (f *SnapshotFilter) FindAll(ctx context.Context, be Lister, loader LoaderUn if err == nil { if ids.Has(*sn.ID()) { continue - } else { - ids.Insert(*sn.ID()) - s = sn.ID().String() } + + ids.Insert(*sn.ID()) + s = sn.ID().String() } } err = fn(s, sn, err)