mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Code cleaning
This commit is contained in:
parent
283ebf3ff9
commit
d3125d8570
1 changed files with 3 additions and 7 deletions
10
server.go
10
server.go
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue