1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Code cleaning

This commit is contained in:
Sam Alba 2013-07-05 15:26:08 -07:00
parent 283ebf3ff9
commit d3125d8570

View file

@ -681,13 +681,9 @@ func (srv *Server) ImagePush(name string, out io.Writer, sf *utils.StreamFormatt
defer srv.poolRemove("push", name)
// Resolve the Repository name from fqn to endpoint + name
var (
endpoint string
e error
)
endpoint, name, e = registry.ResolveRepositoryName(name)
if e != nil {
return e
endpoint, name, err := registry.ResolveRepositoryName(name)
if err != nil {
return err
}
out = utils.NewWriteFlusher(out)