2
0

NewFrontend and NewBackend cannot fail

This commit is contained in:
Jack Christensen
2019-08-31 14:49:55 -05:00
parent 2bc8f2e6af
commit 439ea11d47
4 changed files with 6 additions and 12 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ type Backend struct {
}
// NewBackend creates a new Backend.
func NewBackend(cr ChunkReader, w io.Writer) (*Backend, error) {
return &Backend{cr: cr, w: w}, nil
func NewBackend(cr ChunkReader, w io.Writer) *Backend {
return &Backend{cr: cr, w: w}
}
// Send sends a message to the frontend.