diff options
Diffstat (limited to 'extras/hs-test/container.go')
-rw-r--r-- | extras/hs-test/container.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/hs-test/container.go b/extras/hs-test/container.go index 5aa5e4795e8..4ad454848fa 100644 --- a/extras/hs-test/container.go +++ b/extras/hs-test/container.go @@ -47,7 +47,7 @@ func NewContainer(yamlInput ContainerConfig) (*Container, error) { } if _, ok := yamlInput["volumes"]; ok { - r:= strings.NewReplacer("$HST_DIR", workDir) + r := strings.NewReplacer("$HST_DIR", workDir) for _, volu := range yamlInput["volumes"].([]interface{}) { volumeMap := volu.(ContainerConfig) hostDir := r.Replace(volumeMap["host-dir"].(string)) @@ -55,8 +55,8 @@ func NewContainer(yamlInput ContainerConfig) (*Container, error) { container.addVolume(hostDir, containerDir) if isDefaultWorkDir, ok := volumeMap["is-default-work-dir"]; ok && - isDefaultWorkDir.(bool) && - len(container.workDir) == 0 { + isDefaultWorkDir.(bool) && + len(container.workDir) == 0 { container.workDir = containerDir } |