Skip to content

Commit

Permalink
Fix bug/typo in DHCPD (same expr on both sides of !=)
Browse files Browse the repository at this point in the history
  • Loading branch information
amitlimaye authored and Frostman committed Mar 25, 2024
1 parent eb7df87 commit 619905a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/dhcpd/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ func setup(svc *Service) func(args ...string) (handler.Handler4, error) {
continue
}

// TODO fix this bug/typo later
if val.dhcpSubnet.Spec.StartIP != val.dhcpSubnet.Spec.StartIP { //nolint:staticcheck
if val.dhcpSubnet.Spec.StartIP != event.Subnet.Spec.StartIP {
// ignore this event.
// Can't modify the start ip
pluginHdl.dhcpSubnets.Unlock()
Expand Down

0 comments on commit 619905a

Please sign in to comment.