2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-15 17:47:21 +00:00

Correct golint warning on return

This commit is contained in:
Gábor Lipták 2017-12-26 17:09:41 -05:00 committed by GitHub
parent 9a8d5a1bff
commit 32505c3916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) debug.Log("searching in snapshot %s\n for entries within [%s %s]", sn.ID(), f.pat.oldest, f.pat.newest)
f.out.newsn = sn f.out.newsn = sn
if err := f.findInTree(ctx, *sn.Tree, string(filepath.Separator)); err != nil { return f.findInTree(ctx, *sn.Tree, string(filepath.Separator))
return err
}
return nil
} }
func runFind(opts FindOptions, gopts GlobalOptions, args []string) error { func runFind(opts FindOptions, gopts GlobalOptions, args []string) error {