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:
parent
7fd94e1116
commit
c224f67666
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user