From 5c0ac28fedc62a2bd7dbe6d3642a479a6888e1d9 Mon Sep 17 00:00:00 2001 From: Nex <nex@nex.sx> Date: Fri, 21 Oct 2016 13:19:19 +0200 Subject: [PATCH] Changing a little the return values --- internal/common/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/common/common.go b/internal/common/common.go index 1cc26a1..5be7012 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -343,7 +343,7 @@ func WaitTimeout(c *exec.Cmd, timeout time.Duration) error { } // https://gist.github.com/kylelemons/1525278 -func Pipeline(cmds ...*exec.Cmd) (pipeLineOutput, collectedStandardError []byte, pipeLineError os.Error) { +func Pipeline(cmds ...*exec.Cmd) ([]byte, []byte, error) { // Require at least one command if len(cmds) < 1 { return nil, nil, nil @@ -355,7 +355,7 @@ func Pipeline(cmds ...*exec.Cmd) (pipeLineOutput, collectedStandardError []byte, last := len(cmds) - 1 for i, cmd := range cmds[:last] { - var err os.Error + var err error // Connect each command's stdin to the previous command's stdout if cmds[i+1].Stdin, err = cmd.StdoutPipe(); err != nil { return nil, nil, err