Skip to content

Commit 52959ab

Browse files
committed
Remove redundant nil check
1 parent 6ac6016 commit 52959ab

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/registry/core/service/ipallocator/ipallocator.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ func NewIPAllocator(
102102
// of having to do conversions with IP addresses.
103103
// Don't allocate the network's ".0" address.
104104
ipFirst := prefix.Masked().Addr().Next()
105-
if err != nil {
106-
return nil, err
107-
}
108105
// Use the broadcast address as last address for IPv6
109106
ipLast, err := broadcastAddress(prefix)
110107
if err != nil {

0 commit comments

Comments
 (0)