pull/731/merge
Darien Raymond 2017-11-21 16:53:07 +01:00
parent c51251bbdb
commit 66ebeaa0ca
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 0 additions and 4 deletions

View File

@ -27,10 +27,6 @@ func (w *BufferToBytesWriter) WriteMultiBuffer(mb MultiBuffer) error {
}
func (w *BufferToBytesWriter) ReadFrom(reader io.Reader) (int64, error) {
if readerFrom, ok := w.Writer.(io.ReaderFrom); ok {
return readerFrom.ReadFrom(reader)
}
var sc SizeCounter
err := Copy(NewReader(reader), w, CountSize(&sc))
return sc.Size, err