diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-06-05 15:39:37 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-05 20:07:09 +0900 |
commit | 98e7b82ffc8a9bdfaccb1de3fc4c9cf71376d567 (patch) | |
tree | a93207805809f1261c636d8f36635468a81c1726 /config/default_linux.go | |
parent | b285fb2475ecf0543a1c3cbfbff1b195d12678d5 (diff) |
config: Improve golint results
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'config/default_linux.go')
-rw-r--r-- | config/default_linux.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/default_linux.go b/config/default_linux.go index 6bee2317..f83b76fe 100644 --- a/config/default_linux.go +++ b/config/default_linux.go @@ -18,8 +18,9 @@ package config import ( "fmt" - "github.com/vishvananda/netlink" "net" + + "github.com/vishvananda/netlink" ) func GetIPv6LinkLocalNeighborAddress(ifname string) (string, error) { @@ -40,7 +41,7 @@ func GetIPv6LinkLocalNeighborAddress(ifname string) (string, error) { } if neigh.State&netlink.NUD_FAILED == 0 && neigh.IP.IsLinkLocalUnicast() && !local { addr = neigh.IP - cnt += 1 + cnt++ } } |