diff options
author | Imcom Jin <jinyu.bjut@gmail.com> | 2021-05-27 16:03:23 +0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2021-06-07 09:25:55 +0900 |
commit | 3047f6c9b733abc3f2e13c87357fab58a3a9b327 (patch) | |
tree | 615b052c986146153a58368c2426538bd74ecaae | |
parent | d277950d0f55a98e31822bacaea15bb5c29ac032 (diff) |
fix: fix check according to golang s1025
https://staticcheck.io/docs/checks#S1025
-rw-r--r-- | pkg/packet/bgp/bgp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/packet/bgp/bgp.go b/pkg/packet/bgp/bgp.go index 5403a5f3..c3e72969 100644 --- a/pkg/packet/bgp/bgp.go +++ b/pkg/packet/bgp/bgp.go @@ -4922,7 +4922,7 @@ func (n *OpaqueNLRI) Len(options ...*MarshallingOption) int { } func (n *OpaqueNLRI) String() string { - return fmt.Sprintf("%s", n.Key) + return string(n.Key) } func (n *OpaqueNLRI) MarshalJSON() ([]byte, error) { |