Skip to content

Commit ce8cb5a

Browse files
committed
get rid of unneeded comments
1 parent 48168b1 commit ce8cb5a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

npm/pkg/controlplane/translation/translatePolicy.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,6 @@ func translateRule(npmNetPol *policies.NPMNetworkPolicy,
454454
// #2.1 Handle IPBlock and port if exist
455455
if peer.IPBlock != nil {
456456
if len(peer.IPBlock.CIDR) > 0 {
457-
// add logic that if the peer is only IPBlock and npm lite is enabled and is a /32 cidr block
458-
// then skip creating IpBlockIPSet
459457
if npmLiteToggle {
460458
err = directPeerAndPortRule(npmNetPol, direction, ports, peer.IPBlock.CIDR, npmLiteToggle)
461459
if err != nil {

0 commit comments

Comments
 (0)