diff --git a/internal/utils/archive_extract.go b/internal/utils/archive_extract.go index 86201821..30cf5ab2 100644 --- a/internal/utils/archive_extract.go +++ b/internal/utils/archive_extract.go @@ -58,7 +58,7 @@ func ExtractArchiveFile(archivePath string, outputDir string) error { return fmt.Errorf("archive content open failed: %w", err) } defer reader.Close() - + if _, err = io.Copy(extractedFile, reader); err != nil { if closeErr := extractedFile.Close(); closeErr != nil { return fmt.Errorf("copy failed: %w; close also failed: %v", err, closeErr)