From 546a02b49efa854c264c1d2edbd0887c7d25074e Mon Sep 17 00:00:00 2001
From: Andrey Meshkov <am@adguard.com>
Date: Thu, 20 Aug 2020 15:41:25 +0300
Subject: [PATCH] fix linter issues

---
 dhcpd/check_other_dhcp.go | 2 +-
 dhcpd/nclient4/client.go  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/dhcpd/check_other_dhcp.go b/dhcpd/check_other_dhcp.go
index ebcfd363..c4716256 100644
--- a/dhcpd/check_other_dhcp.go
+++ b/dhcpd/check_other_dhcp.go
@@ -33,7 +33,7 @@ func CheckIfOtherDHCPServersPresentV4(ifaceName string) (bool, error) {
 	}
 
 	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]
diff --git a/dhcpd/nclient4/client.go b/dhcpd/nclient4/client.go
index f2eabb5d..02430ae9 100644
--- a/dhcpd/nclient4/client.go
+++ b/dhcpd/nclient4/client.go
@@ -374,6 +374,7 @@ func WithHWAddr(hwAddr net.HardwareAddr) ClientOpt {
 	}
 }
 
+// nolint
 func withBufferCap(n int) ClientOpt {
 	return func(c *Client) (err error) {
 		c.bufferCap = n