From 3183af8b19d2adf29dd3fb80689d764353a3fe00 Mon Sep 17 00:00:00 2001 From: Tibor Vass Date: Tue, 13 Jan 2015 11:13:27 -0800 Subject: [PATCH] builder: use len() > 0 instead of != nil Signed-off-by: Tibor Vass --- builder/internals.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/internals.go b/builder/internals.go index 692f8f209..830da7272 100644 --- a/builder/internals.go +++ b/builder/internals.go @@ -532,7 +532,7 @@ func (b *Builder) create() (*daemon.Container, error) { b.TmpContainers[c.ID] = struct{}{} fmt.Fprintf(b.OutStream, " ---> Running in %s\n", utils.TruncateID(c.ID)) - if config.Cmd != nil { + if len(config.Cmd) > 0 { // override the entry point that may have been picked up from the base image c.Path = config.Cmd[0] c.Args = config.Cmd[1:]