From 3c4c5a15b432b229ae72bb8360f6b17b2534e847 Mon Sep 17 00:00:00 2001 From: Casey Lee Date: Tue, 15 Jan 2019 23:12:10 -0800 Subject: [PATCH] go fmt --- actions/parser.go | 2 +- common/executor_test.go | 4 ++-- container/docker_common.go | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/actions/parser.go b/actions/parser.go index a3864bf9..8bf6cbc5 100644 --- a/actions/parser.go +++ b/actions/parser.go @@ -4,8 +4,8 @@ import ( "bytes" "errors" "fmt" - "io/ioutil" "io" + "io/ioutil" "os" "path/filepath" diff --git a/common/executor_test.go b/common/executor_test.go index 9ed60150..cf850895 100644 --- a/common/executor_test.go +++ b/common/executor_test.go @@ -22,11 +22,11 @@ func TestNewWorkflow(t *testing.T) { runcount := 0 successWorkflow := NewPipelineExecutor( func() error { - runcount ++ + runcount++ return nil }, func() error { - runcount ++ + runcount++ return nil }) assert.Nil(successWorkflow()) diff --git a/container/docker_common.go b/container/docker_common.go index 311f1f51..6665cdc1 100644 --- a/container/docker_common.go +++ b/container/docker_common.go @@ -32,7 +32,7 @@ type dockerMessage struct { func (i *DockerExecutorInput) logDockerOutput(dockerResponse io.Reader) { scanner := bufio.NewScanner(dockerResponse) if i.Logger == nil { - return + return } for scanner.Scan() { i.Logger.Infof(scanner.Text()) @@ -66,7 +66,7 @@ func (i *DockerExecutorInput) writeLog(isError bool, format string, args ...inte func (i *DockerExecutorInput) logDockerResponse(dockerResponse io.ReadCloser, isError bool) { if dockerResponse == nil { - return + return } defer dockerResponse.Close() @@ -83,7 +83,7 @@ func (i *DockerExecutorInput) logDockerResponse(dockerResponse io.ReadCloser, is if err := json.Unmarshal(line, &msg); err == nil { if msg.Error != "" { i.writeLog(isError, "%s", msg.Error) - return + return } if msg.Status != "" {