From 4ecb84f9ad776b504dd707e5e0390223e61dfb27 Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Sun, 7 Oct 2018 23:43:24 +0300 Subject: [PATCH] Fix some lint warnings --- control.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control.go b/control.go index dea887b2..a1b88900 100644 --- a/control.go +++ b/control.go @@ -144,7 +144,7 @@ func childwaiter() { err := coreDNSCommand.Wait() log.Printf("coredns unexpectedly died: %s\n", err) coreDNSCommand.Process.Release() - log.Printf("restarting coredns\n", err) + log.Printf("restarting coredns") err = startDNSServer() if err != nil { log.Printf("Couldn't restart DNS server: %s\n", err) @@ -510,7 +510,7 @@ func handleTestUpstreamDNS(w http.ResponseWriter, r *http.Request) { result := map[string]string{} for _, host := range hosts { - err := checkDNS(host) + err = checkDNS(host) if err != nil { log.Println(err) result[host] = err.Error()