mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #125514 from DrAuYueng/remove-redundant-nil-check
Remove redundant nil check
This commit is contained in:
commit
1519f80281
@ -102,9 +102,6 @@ func NewIPAllocator(
|
|||||||
// of having to do conversions with IP addresses.
|
// of having to do conversions with IP addresses.
|
||||||
// Don't allocate the network's ".0" address.
|
// Don't allocate the network's ".0" address.
|
||||||
ipFirst := prefix.Masked().Addr().Next()
|
ipFirst := prefix.Masked().Addr().Next()
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
// Use the broadcast address as last address for IPv6
|
// Use the broadcast address as last address for IPv6
|
||||||
ipLast, err := broadcastAddress(prefix)
|
ipLast, err := broadcastAddress(prefix)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user