Skip to content

Commit 9893f9d

Browse files
committed
fix linter issue
1 parent 10f805d commit 9893f9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cni/network/invoker_cns_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func TestCNSIPAMInvoker_Add_Overlay(t *testing.T) {
326326
Gateway: net.ParseIP("10.0.0.1"),
327327
},
328328
},
329-
Routes: ([]network.RouteInfo)(nil),
329+
Routes: []network.RouteInfo(nil),
330330
NICType: cns.InfraNIC,
331331
SkipDefaultRoutes: true,
332332
HostSubnetPrefix: *parseCIDR("10.0.0.0/24"),
@@ -1716,7 +1716,7 @@ func TestCNSIPAMInvoker_Add_SwiftV2(t *testing.T) {
17161716
Gateway: net.ParseIP("10.0.0.1"),
17171717
},
17181718
},
1719-
Routes: ([]network.RouteInfo)(nil),
1719+
Routes: []network.RouteInfo(nil),
17201720
NICType: cns.InfraNIC,
17211721
SkipDefaultRoutes: true,
17221722
HostSubnetPrefix: *parseCIDR("10.0.0.0/24"),
@@ -1739,7 +1739,7 @@ func TestCNSIPAMInvoker_Add_SwiftV2(t *testing.T) {
17391739
NICType: cns.BackendNIC,
17401740
MacAddress: ibParsedMacAddress,
17411741
PnPID: pnpID,
1742-
Routes: ([]network.RouteInfo)(nil),
1742+
Routes: []network.RouteInfo(nil),
17431743
},
17441744
},
17451745
wantErr: false,

0 commit comments

Comments
 (0)