mirror of
https://github.com/restic/restic.git
synced 2026-11-02 13:35:33 +00:00
Enhancement: calls to SnapshotFilter.FindLatest() can be simplified (#5688)
This commit is contained in:
1 parent
083cdf0675
commit
bcd4168428
3 files changed
+3
-15
No files matched your search
@@ -157,11 +157,7 @@ func runDump(ctx context.Context, opts DumpOptions, gopts global.Options, args [
|
||||
}
|
||||
defer unlock()
|
||||
|
||||
sn, subfolder, err := (&data.SnapshotFilter{
|
||||
Hosts: opts.Hosts,
|
||||
Paths: opts.Paths,
|
||||
Tags: opts.Tags,
|
||||
}).FindLatest(ctx, repo, repo, snapshotIDString)
|
||||
sn, subfolder, err := opts.SnapshotFilter.FindLatest(ctx, repo, repo, snapshotIDString)
|
||||
if err != nil {
|
||||
return errors.Fatalf("failed to find snapshot: %v", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user