mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
fix lint warning
This commit is contained in:
parent
c1eccb3a45
commit
251d6f6fcb
@ -93,7 +93,7 @@ func (r *AuthenticationReader) readSize() error {
|
|||||||
|
|
||||||
sizeBytes := r.sizeParser.SizeBytes()
|
sizeBytes := r.sizeParser.SizeBytes()
|
||||||
if r.buffer.Len() < sizeBytes {
|
if r.buffer.Len() < sizeBytes {
|
||||||
r.buffer.Reset(buf.ReadFrom(r.buffer))
|
common.Must(r.buffer.Reset(buf.ReadFrom(r.buffer)))
|
||||||
delta := sizeBytes - r.buffer.Len()
|
delta := sizeBytes - r.buffer.Len()
|
||||||
if err := r.buffer.AppendSupplier(buf.ReadAtLeastFrom(r.reader, delta)); err != nil {
|
if err := r.buffer.AppendSupplier(buf.ReadAtLeastFrom(r.reader, delta)); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user