Browse Source

return correct error

pull/1869/head^2
Darien Raymond 6 years ago
parent
commit
c72d853454
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      common/buf/multi_buffer.go

2
common/buf/multi_buffer.go

@ -204,7 +204,7 @@ func WriteMultiBuffer(writer io.Writer, mb MultiBuffer) (MultiBuffer, error) {
_, err := writer.Write(b.Bytes()) _, err := writer.Write(b.Bytes())
b.Release() b.Release()
if err != nil { if err != nil {
return mb, nil return mb, err
} }
} }

Loading…
Cancel
Save