Remove error from engine.New()

Without creating a root there is no way for the engine to return an
error from the new function.
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby
2014-04-23 11:54:35 -07:00
parent 87e8d7754e
commit 7100ace42b
7 changed files with 21 additions and 42 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ func (eng *Engine) Register(name string, handler Handler) error {
}
// New initializes a new engine.
func New() (*Engine, error) {
func New() *Engine {
eng := &Engine{
handlers: make(map[string]Handler),
id: utils.RandomString(),
@@ -73,7 +73,7 @@ func New() (*Engine, error) {
for k, v := range globalHandlers {
eng.handlers[k] = v
}
return eng, nil
return eng
}
func (eng *Engine) String() string {