From f3ee2b636ad3b12e7484ec6fb13f220699417046 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Mon, 9 Jan 2023 12:07:09 +0100 Subject: 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 Change-Id: Icba60633f82aa8bbc75749f080e00f0375b55a18 --- extras/hs-test/container.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extras/hs-test/container.go') 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 } -- cgit 1.2.3-korg