common/hugio: Fix multiWriteCloser.Close

Fixes #10505
This commit is contained in:
Bjørn Erik Pedersen 2022-12-06 10:32:33 +01:00
parent 50549c867c
commit 5067775a6f
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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
}
}