mirror of
https://github.com/restic/restic.git
synced 2026-11-04 16:35:06 +00:00
Remove error from return value of NewContentHandler
This commit is contained in:
1 parent
4b70bba588
commit
fe231af7fc
8 files changed
+9
-28
No files matched your search
+1
-4
@@ -25,10 +25,7 @@ func NewRestorer(s Server, snid backend.ID) (*Restorer, error) {
|
||||
r := &Restorer{s: s}
|
||||
|
||||
var err error
|
||||
r.ch, err = NewContentHandler(s)
|
||||
if err != nil {
|
||||
return nil, arrar.Annotate(err, "create contenthandler for restorer")
|
||||
}
|
||||
r.ch = NewContentHandler(s)
|
||||
|
||||
r.sn, err = r.ch.LoadSnapshot(snid)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user