mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 19:28:16 +00:00
Remove redundant nil check
This commit is contained in:
@@ -102,9 +102,6 @@ func NewIPAllocator(
|
||||
// of having to do conversions with IP addresses.
|
||||
// Don't allocate the network's ".0" address.
|
||||
ipFirst := prefix.Masked().Addr().Next()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Use the broadcast address as last address for IPv6
|
||||
ipLast, err := broadcastAddress(prefix)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user