mirror of
https://github.com/restic/restic.git
synced 2025-08-24 16:17:30 +00:00
more cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user