mirror of
https://github.com/restic/restic.git
synced 2024-12-22 15:57:07 +00:00
Correct golint warning on return
This commit is contained in:
parent
9a8d5a1bff
commit
32505c3916
1 changed files with 1 additions and 4 deletions
|
@ -241,10 +241,7 @@ func (f *Finder) findInSnapshot(ctx context.Context, sn *restic.Snapshot) error
|
|||
debug.Log("searching in snapshot %s\n for entries within [%s %s]", sn.ID(), f.pat.oldest, f.pat.newest)
|
||||
|
||||
f.out.newsn = sn
|
||||
if err := f.findInTree(ctx, *sn.Tree, string(filepath.Separator)); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return f.findInTree(ctx, *sn.Tree, string(filepath.Separator))
|
||||
}
|
||||
|
||||
func runFind(opts FindOptions, gopts GlobalOptions, args []string) error {
|
||||
|
|
Loading…
Reference in a new issue