diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2023-01-09 12:07:09 +0100 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2023-01-09 12:14:23 +0100 |
commit | f3ee2b636ad3b12e7484ec6fb13f220699417046 (patch) | |
tree | 20a2f6a1a0b42d0306e947b9b19f6861df5dbb92 /extras/hs-test/container.go | |
parent | c204c87c186993704927beffa4d5b1cafaf9a193 (diff) |
hs-test: fix code style
This will add a new target (fixstyle) to Makefile that runs gofmt tool.
Type: style
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Change-Id: Icba60633f82aa8bbc75749f080e00f0375b55a18
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 } |