From 5ecd940a594507075e6cee80aa70c258a9d850ca Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Wed, 3 Apr 2013 11:08:32 +0200 Subject: [PATCH] remove dead code in CmdPush --- commands.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/commands.go b/commands.go index 43ff0ca24f..0475b09451 100644 --- a/commands.go +++ b/commands.go @@ -512,10 +512,9 @@ func (srv *Server) CmdPush(stdin io.ReadCloser, stdout io.Writer, args ...string return err } return nil - } else { - return err } - return nil + + return err } err = srv.runtime.graph.PushImage(stdout, img, srv.runtime.authConfig) if err != nil {