Fix vet warning in archive.go

Signed-off-by: Megan Kostick <mkostick@us.ibm.com>
This commit is contained in:
Megan Kostick 2015-04-14 09:13:50 -07:00
parent b15e56b3ef
commit 967f4dc067

View file

@ -82,9 +82,9 @@ func Untar(tarArchive io.Reader, dest string, options *archive.TarOptions) error
cmd := reexec.Command("docker-untar", dest) cmd := reexec.Command("docker-untar", dest)
cmd.Stdin = decompressedArchive cmd.Stdin = decompressedArchive
cmd.ExtraFiles = append(cmd.ExtraFiles, r) cmd.ExtraFiles = append(cmd.ExtraFiles, r)
var output bytes.Buffer output := bytes.NewBuffer(nil)
cmd.Stdout = &output cmd.Stdout = output
cmd.Stderr = &output cmd.Stderr = output
if err := cmd.Start(); err != nil { if err := cmd.Start(); err != nil {
return fmt.Errorf("Untar error on re-exec cmd: %v", err) return fmt.Errorf("Untar error on re-exec cmd: %v", err)