Skip to content

Commit

Permalink
Update src/pkg/packager/sources/split.go
Browse files Browse the repository at this point in the history
Co-authored-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
  • Loading branch information
Racer159 and AustinAbro321 authored Feb 20, 2024
1 parent 87794df commit 36b5b88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pkg/packager/sources/split.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ func (s *SplitTarballSource) Collect(dir string) (string, error) {
}

// Close the file when done copying
err = f.Close()
if err != nil {
if err := f.Close(); err != nil {
return "", fmt.Errorf("unable to close file %s: %w", file, err)
}
}
Expand Down

0 comments on commit 36b5b88

Please sign in to comment.