Skip to content

Commit 6f2d5e0

Browse files
committed
fix linter issues
1 parent 4e03232 commit 6f2d5e0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cns/middlewares/k8sSwiftV2.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package middlewares
33
import (
44
"context"
55
"fmt"
6-
"net/netip"
76
"net"
7+
"net/netip"
88

99
"github.com/Azure/azure-container-networking/cns"
1010
"github.com/Azure/azure-container-networking/cns/configuration"
@@ -282,7 +282,7 @@ func (k *K8sSWIFTv2Middleware) addRoutes(cidrs []string, gatewayIP string) []cns
282282
}
283283

284284
// CNS gets node, pod and service CIDRs from configuration env and parse them to get the v4 and v6 IPs
285-
func (k *K8sSWIFTv2Middleware) getCidrs(podIPInfo *cns.PodIpInfo) (v4IPs, v6IPs []string, err error) {
285+
func (k *K8sSWIFTv2Middleware) getCidrs() (v4IPs, v6IPs []string, err error) {
286286
v4IPs = []string{}
287287
v6IPs = []string{}
288288

@@ -348,4 +348,3 @@ func (k *K8sSWIFTv2Middleware) SetInfraRoutes(podIPInfo *cns.PodIpInfo, gwv4, gw
348348

349349
return routes, nil
350350
}
351-

cns/middlewares/k8sSwiftV2_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package middlewares
33
import (
44
"context"
55
"fmt"
6-
"testing"
76
"reflect"
7+
"testing"
88

99
"github.com/Azure/azure-container-networking/cns"
1010
"github.com/Azure/azure-container-networking/cns/configuration"

0 commit comments

Comments
 (0)