Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cplee committed Jan 16, 2019
1 parent 88847ae commit 3c4c5a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion actions/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"io"
"io/ioutil"
"os"
"path/filepath"

Expand Down
4 changes: 2 additions & 2 deletions common/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
6 changes: 3 additions & 3 deletions container/docker_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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()

Expand All @@ -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 != "" {
Expand Down

0 comments on commit 3c4c5a1

Please sign in to comment.