Skip to content

Commit

Permalink
fix: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Jun 19, 2020
1 parent 990bf98 commit f989bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ipam/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ func (subnet *Subnet) ReleaseAddress(podName string) (IP, string) {
return ip, mac
}

if merged, newFreeList := mergeIPRangeList(subnet.ReleasedIPList, ip); merged {
subnet.ReleasedIPList = newFreeList
if merged, newReleasedList := mergeIPRangeList(subnet.ReleasedIPList, ip); merged {
subnet.ReleasedIPList = newReleasedList
return ip, mac
}
}
Expand Down

0 comments on commit f989bdd

Please sign in to comment.