mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-10-14 04:54:03 -04:00
remove unnecessary err object from SplitBytes
This commit is contained in:
@@ -21,8 +21,7 @@ func TestMultiBufferRead(t *testing.T) {
|
||||
mb := MultiBuffer{b1, b2}
|
||||
|
||||
bs := make([]byte, 32)
|
||||
_, nBytes, err := SplitBytes(mb, bs)
|
||||
assert(err, IsNil)
|
||||
_, nBytes := SplitBytes(mb, bs)
|
||||
assert(nBytes, Equals, 4)
|
||||
assert(bs[:nBytes], Equals, []byte("abcd"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user