mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-12 22:42:18 +00:00
refactor
This commit is contained in:
2 files changed
+2
-4
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user