summaryrefslogtreecommitdiffhomepage
path: root/pkg/packet/rtr/rtr.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2019-01-09 09:07:06 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-01-09 14:36:48 +0900
commit1d14b8ecfba61de524e0266e4a0fddb3b111f235 (patch)
tree8e66d6dada1377f85e58669c416f7f4cf993ee34 /pkg/packet/rtr/rtr.go
parent0ae389ad1e7daeaeb354cd4be76b13ece9153e00 (diff)
silence staticcheck warnings
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'pkg/packet/rtr/rtr.go')
-rw-r--r--pkg/packet/rtr/rtr.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/packet/rtr/rtr.go b/pkg/packet/rtr/rtr.go
index 902f1e62..d332f84b 100644
--- a/pkg/packet/rtr/rtr.go
+++ b/pkg/packet/rtr/rtr.go
@@ -355,7 +355,7 @@ func SplitRTR(data []byte, atEOF bool) (advance int, token []byte, err error) {
totalLen := binary.BigEndian.Uint32(data[4:8])
if totalLen < RTR_MIN_LEN {
- return 0, nil, fmt.Errorf("Invalid length: %d", totalLen)
+ return 0, nil, fmt.Errorf("invalid length: %d", totalLen)
}
if uint32(len(data)) < totalLen {
return 0, nil, nil
@@ -385,7 +385,7 @@ func ParseRTR(data []byte) (RTRMessage, error) {
case RTR_ERROR_REPORT:
msg = &RTRErrorReport{}
default:
- return nil, fmt.Errorf("unknown RTR message type %d:", data[1])
+ return nil, fmt.Errorf("unknown RTR message type %d", data[1])
}
err := msg.DecodeFromBytes(data)
return msg, err