mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 15:28:35 +00:00
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:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user