Skip to content

Commit

Permalink
simplify error return
Browse files Browse the repository at this point in the history
  • Loading branch information
andrestc committed Mar 29, 2018
1 parent 3988a43 commit d0f7a0d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ func pushSidecar(dockerClient *docker.Client, sideCar *docker.Sidecar, config Co
Email: config.RegistryAuthEmail,
ServerAddress: config.RegistryAddress,
}
if err := tagAndPush(dockerClient, img, authConfig, config.RegistryPushRetries, w); err != nil {
return fmt.Errorf("Error pushing image: %v", err)
}
return nil
return tagAndPush(dockerClient, img, authConfig, config.RegistryPushRetries, w)
}

func tagAndPush(dockerClient *docker.Client, img docker.Image, auth docker.AuthConfig, retries int, w io.Writer) error {
Expand Down

0 comments on commit d0f7a0d

Please sign in to comment.