mirror of
https://github.com/restic/restic.git
synced 2026-04-27 15:09:24 +00:00
Remove error from return value of NewContentHandler
This commit is contained in:
@@ -17,13 +17,13 @@ type ContentHandler struct {
|
||||
}
|
||||
|
||||
// NewContentHandler creates a new content handler.
|
||||
func NewContentHandler(s Server) (*ContentHandler, error) {
|
||||
func NewContentHandler(s Server) *ContentHandler {
|
||||
ch := &ContentHandler{
|
||||
s: s,
|
||||
bl: NewBlobList(),
|
||||
}
|
||||
|
||||
return ch, nil
|
||||
return ch
|
||||
}
|
||||
|
||||
// LoadSnapshot adds all blobs from a snapshot into the content handler and returns the snapshot.
|
||||
|
||||
Reference in New Issue
Block a user