Merge pull request #125514 from DrAuYueng/remove-redundant-nil-check

Remove redundant nil check
This commit is contained in:
Kubernetes Prow Robot 2024-06-20 01:22:18 -07:00 committed by GitHub
commit 1519f80281
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {