fix lint warnings

This commit is contained in:
Darien Raymond
2018-11-13 23:19:58 +01:00
parent c5ccbe6b63
commit a14fae4b35
11 changed files with 26 additions and 17 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ func (r *ReadVReader) readMulti() (MultiBuffer, error) {
if nBytes <= 0 {
break
}
end := int32(nBytes)
end := nBytes
if end > Size {
end = Size
}
+1 -1
View File
@@ -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