Remove error from return value of NewContentHandler

This commit is contained in:
Alexander Neumann
2015-01-04 20:07:30 +01:00
parent 4b70bba588
commit fe231af7fc
8 changed files with 9 additions and 28 deletions

View File

@@ -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.