Fix pointer error
This commit is contained in:
parent
3b4555344c
commit
ec2407481b
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user