mirror of
https://github.com/octoleo/restic.git
synced 2024-12-01 17:23:57 +00:00
Remove unnecessary else block
This commit is contained in:
parent
319087c056
commit
7a01bd3b67
@ -143,10 +143,10 @@ func (f *SnapshotFilter) FindAll(ctx context.Context, be Lister, loader LoaderUn
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
if ids.Has(*sn.ID()) {
|
if ids.Has(*sn.ID()) {
|
||||||
continue
|
continue
|
||||||
} else {
|
|
||||||
ids.Insert(*sn.ID())
|
|
||||||
s = sn.ID().String()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ids.Insert(*sn.ID())
|
||||||
|
s = sn.ID().String()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err = fn(s, sn, err)
|
err = fn(s, sn, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user