2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-10 04:42:21 +00:00

Merge pull request #1503 from gliptak/patch-2

Correct golint warning on return
This commit is contained in:
Alexander Neumann 2017-12-27 12:52:31 +01:00
commit af27f1dde5

View File

@ -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 {