diff --git a/builder/tarsum.go b/builder/tarsum.go index 35054dcba1..77d3142e7b 100644 --- a/builder/tarsum.go +++ b/builder/tarsum.go @@ -104,7 +104,8 @@ func MakeTarSumContext(tarStream io.Reader) (ModifiableContext, error) { return nil, err } - if err := chrootarchive.Untar(sum, root, nil); err != nil { + err = chrootarchive.Untar(sum, root, nil) + if err != nil { return nil, err }