fix linter issues
This commit is contained in:
parent
f8924f0785
commit
546a02b49e
@ -33,7 +33,7 @@ func CheckIfOtherDHCPServersPresentV4(ifaceName string) (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if runtime.GOOS == "darwin" {
|
if runtime.GOOS == "darwin" {
|
||||||
return false, fmt.Errorf("Can't find DHCP server: not supported on macOS")
|
return false, fmt.Errorf("can't find DHCP server: not supported on macOS")
|
||||||
}
|
}
|
||||||
|
|
||||||
srcIP := ifaceIPNet[0]
|
srcIP := ifaceIPNet[0]
|
||||||
|
@ -374,6 +374,7 @@ func WithHWAddr(hwAddr net.HardwareAddr) ClientOpt {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// nolint
|
||||||
func withBufferCap(n int) ClientOpt {
|
func withBufferCap(n int) ClientOpt {
|
||||||
return func(c *Client) (err error) {
|
return func(c *Client) (err error) {
|
||||||
c.bufferCap = n
|
c.bufferCap = n
|
||||||
|
Loading…
Reference in New Issue
Block a user