Skip to content

Commit

Permalink
just for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 committed Jan 22, 2025
1 parent 35a33ae commit 8e94fc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cni/network/invoker_cns.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,9 @@ func getRoutes(cnsRoutes []cns.Route, skipDefaultRoutes bool) ([]network.RouteIn
}

gw := net.ParseIP(route.GatewayIPAddress)
if skipDefaultRoutes {
return nil, errors.Wrap(errInvalidGatewayIP, route.GatewayIPAddress)
}
// if gw == nil && skipDefaultRoutes {

Check failure on line 365 in cni/network/invoker_cns.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, ubuntu-latest)

commentedOutCode: may want to remove commented-out code (gocritic)

Check failure on line 365 in cni/network/invoker_cns.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, ubuntu-latest)

commentedOutCode: may want to remove commented-out code (gocritic)

Check failure on line 365 in cni/network/invoker_cns.go

View workflow job for this annotation

GitHub Actions / Lint (1.22.x, windows-latest)

commentedOutCode: may want to remove commented-out code (gocritic)

Check failure on line 365 in cni/network/invoker_cns.go

View workflow job for this annotation

GitHub Actions / Lint (1.23.x, windows-latest)

commentedOutCode: may want to remove commented-out code (gocritic)
// return nil, errors.Wrap(errInvalidGatewayIP, route.GatewayIPAddress)
// }

routes = append(routes,
network.RouteInfo{
Expand Down

0 comments on commit 8e94fc6

Please sign in to comment.