Skip to content

Commit

Permalink
Correct formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Gábor Lipták <[email protected]>
  • Loading branch information
gliptak authored Mar 26, 2024
1 parent 9d191e9 commit a0b7ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/archive_extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a0b7ae4

Please sign in to comment.