diff options
Diffstat (limited to 'internal/pkg/tar.go')
| -rw-r--r-- | internal/pkg/tar.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go index 59c44cbf..c56176b1 100644 --- a/internal/pkg/tar.go +++ b/internal/pkg/tar.go @@ -97,12 +97,11 @@ func (a *tarArtifact) Cure(t *TContext) (err error) { } defer func(f io.ReadCloser) { - closeErr := tr.Close() if err == nil { - err = closeErr + err = tr.Close() } - closeErr = f.Close() + closeErr := f.Close() if err == nil { err = closeErr } |
