diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-12-06 10:32:33 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-12-06 10:32:33 +0100 |
commit | 5067775a6f21ba48d9caa2a2fcb51caa1653a6df (patch) | |
tree | 25c51c3214f99ffa410bf78424649b8c7ea5f0ac | |
parent | 50549c867cdde2d9c6bc072dd1ab0c58014d040b (diff) | |
download | hugo-5067775a6f21ba48d9caa2a2fcb51caa1653a6df.tar.gz hugo-5067775a6f21ba48d9caa2a2fcb51caa1653a6df.zip |
common/hugio: Fix multiWriteCloser.Close
Fixes #10505
-rw-r--r-- | common/hugio/writers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hugio/writers.go b/common/hugio/writers.go index d8be83a40..e600c1ebb 100644 --- a/common/hugio/writers.go +++ b/common/hugio/writers.go @@ -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 } } |