mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-02 08:20:25 +00:00
fix lint warnings
This commit is contained in:
@@ -99,7 +99,7 @@ func (r *ReadVReader) readMulti() (MultiBuffer, error) {
|
||||
if nBytes <= 0 {
|
||||
break
|
||||
}
|
||||
end := int32(nBytes)
|
||||
end := nBytes
|
||||
if end > Size {
|
||||
end = Size
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/golang/protobuf/proto"
|
||||
)
|
||||
|
||||
// ToTypeMessage converts a proto Message into TypedMessage.
|
||||
// ToTypedMessage converts a proto Message into TypedMessage.
|
||||
func ToTypedMessage(message proto.Message) *TypedMessage {
|
||||
if message == nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user