This commit is contained in:
Darien Raymond committed 2017-04-18 12:41:36 +02:00
1 parent cee2fe4b6f
commit 6361ea3188
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -28,8 +28,7 @@ func (v *BufferedWriter) Write(b []byte) (int, error) {
return 0, err
}
if v.buffer.IsFull() {
err := v.Flush()
if err != nil {
if err := v.Flush(); err != nil {
return 0, err
}
if nBytes < len(b) {