Fix pointer error

This commit is contained in:
Dane Everitt 2019-04-05 22:20:10 -07:00
parent 3b4555344c
commit ec2407481b
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -173,7 +173,7 @@ func FromConfiguration(data []byte, cfg DockerConfiguration) (*Server, error) {
// this logic in. When we're ready to support other environment we'll need to make // this logic in. When we're ready to support other environment we'll need to make
// some modifications here obviously. // some modifications here obviously.
var env Environment var env Environment
if t, err := NewDockerEnvironment(cfg); err != nil { if t, err := NewDockerEnvironment(cfg); err == nil {
t.Server = s t.Server = s
env = t env = t
} else { } else {