Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Clean up docker.go
Browse files Browse the repository at this point in the history
  • Loading branch information
puffrfish committed Jan 1, 2018
1 parent 7d39593 commit 1153212
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions environments/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,13 @@ func (e *docker) WaitForMainProcessFor(timeout int) (err error) {
return
}

const (
dockerAPIversionDefault = "1.25"
)

func (d *docker) getClient() (*client.Client, error) {
var err error = nil
if d.cli == nil {
d.cli, err = client.NewEnvClient()
ctx := context.Background()
d.cli.NegotiateAPIVersion(ctx)
}
}
return d.cli, err
}

Expand Down

0 comments on commit 1153212

Please sign in to comment.