more cleanup

This commit is contained in:
Florian Weingarten
2015-04-29 21:41:51 -04:00
parent 7af7c64403
commit 0d9360a815
7 changed files with 18 additions and 33 deletions

View File

@@ -19,11 +19,11 @@ type Restorer struct {
Filter func(item string, dstpath string, node *Node) bool
}
var abortOnAllErrors = func(str string, node *Node, err error) error { return err }
var restorerAbortOnAllErrors = func(str string, node *Node, err error) error { return err }
// NewRestorer creates a restorer preloaded with the content from the snapshot id.
func NewRestorer(s *server.Server, id backend.ID) (*Restorer, error) {
r := &Restorer{s: s, Error: abortOnAllErrors}
r := &Restorer{s: s, Error: restorerAbortOnAllErrors}
var err error