aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-12-06 10:32:33 +0100
committerBjørn Erik Pedersen <[email protected]>2022-12-06 10:32:33 +0100
commit5067775a6f21ba48d9caa2a2fcb51caa1653a6df (patch)
tree25c51c3214f99ffa410bf78424649b8c7ea5f0ac
parent50549c867cdde2d9c6bc072dd1ab0c58014d040b (diff)
downloadhugo-5067775a6f21ba48d9caa2a2fcb51caa1653a6df.tar.gz
hugo-5067775a6f21ba48d9caa2a2fcb51caa1653a6df.zip
common/hugio: Fix multiWriteCloser.Close
Fixes #10505
-rw-r--r--common/hugio/writers.go2
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
}
}