Skip to content

Commit

Permalink
cleanup: remove startCommand function, only used once, and
Browse files Browse the repository at this point in the history
unecessary abstraction.

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <[email protected]> (github: jfrazelle)
  • Loading branch information
jessfraz committed Dec 4, 2014
1 parent 7c7026b commit 7ba9a18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion integration-cli/docker_cli_attach_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestAttachMultipleAndRestart(t *testing.T) {
t.Fatal(err)
}

if _, err := startCommand(c); err != nil {
if err := c.Start(); err != nil {
t.Fatal(err)
}

Expand Down
7 changes: 0 additions & 7 deletions integration-cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ func runCommand(cmd *exec.Cmd) (exitCode int, err error) {
return
}

func startCommand(cmd *exec.Cmd) (exitCode int, err error) {
exitCode = 0
err = cmd.Start()
exitCode = processExitCode(err)
return
}

func logDone(message string) {
fmt.Printf("[PASSED]: %s\n", message)
}
Expand Down

0 comments on commit 7ba9a18

Please sign in to comment.