summaryrefslogtreecommitdiffhomepage
path: root/zebra
diff options
context:
space:
mode:
authorSatoshi Fujimoto <satoshi.fujimoto7@gmail.com>2017-11-06 14:30:49 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-11-07 09:51:29 +0900
commit8f0c42dbfff06f11ef65c14ee23ece050aa38460 (patch)
tree21382f61845a1f77e9494953af51f8bba3130198 /zebra
parent5f9347d0d82a8cf8f32259e2459d370c14d85fc5 (diff)
*: Fix problems pointed by 'go vet'
In the near feature (likely in Go1.10), 'go test' will never work if 'go vet' fails. (See: https://github.com/golang/go/issues/18084) This commit is for dealing with such a situation (and also for improving the quality of our code). Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/zapi.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/zapi.go b/zebra/zapi.go
index e9e91015..ef6b79d7 100644
--- a/zebra/zapi.go
+++ b/zebra/zapi.go
@@ -749,7 +749,6 @@ func (c *Client) SendRedistributeDelete(t ROUTE_TYPE) error {
} else {
return fmt.Errorf("unknown route type: %d", t)
}
- return nil
}
func (c *Client) SendIPRoute(vrfId uint16, body *IPRouteBody, isWithdraw bool) error {
@@ -1032,7 +1031,7 @@ func (b *InterfaceAddressUpdateBody) Serialize(version uint8) ([]byte, error) {
func (b *InterfaceAddressUpdateBody) String() string {
return fmt.Sprintf(
- "idx: %d, flags: %d, addr: %s/%d",
+ "idx: %d, flags: %s, addr: %s/%d",
b.Index, b.Flags.String(), b.Prefix.String(), b.Length)
}