1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-17 23:06:30 -05:00

actually return nil

This commit is contained in:
v2ray 2016-05-11 11:54:55 -07:00
parent 7fd94e1116
commit c224f67666

View File

@ -4,7 +4,7 @@ func Pipe(reader Reader, writer Writer) error {
for { for {
buffer, err := reader.Read() buffer, err := reader.Read()
if err != nil { if err != nil {
return nil return err
} }
if buffer.IsEmpty() { if buffer.IsEmpty() {
@ -14,7 +14,7 @@ func Pipe(reader Reader, writer Writer) error {
err = writer.Write(buffer) err = writer.Write(buffer)
if err != nil { if err != nil {
return nil return err
} }
} }
} }