Skip to content

Commit

Permalink
common/hugio: Fix multiWriteCloser.Close
Browse files Browse the repository at this point in the history
Fixes #10505
  • Loading branch information
bep committed Dec 6, 2022
1 parent 50549c8 commit 5067775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/hugio/writers.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type multiWriteCloser struct {
func (m multiWriteCloser) Close() error {
var err error
for _, c := range m.closers {
if closeErr := c.Close(); err != nil {
if closeErr := c.Close(); closeErr != nil {
err = closeErr
}
}
Expand Down

0 comments on commit 5067775

Please sign in to comment.