From 26505ab560bd1b17aa89bd287861d1e8816f59f7 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 13 Sep 2020 20:24:06 +0200 Subject: [PATCH] Merge declaration and assignment --- dnscrypt-proxy/coldstart.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dnscrypt-proxy/coldstart.go b/dnscrypt-proxy/coldstart.go index 408e1638..35aa8afa 100644 --- a/dnscrypt-proxy/coldstart.go +++ b/dnscrypt-proxy/coldstart.go @@ -75,8 +75,7 @@ func handleColdStartClient(clientPc *net.UDPConn, cancelChannel chan struct{}, i if question.Qclass != dns.ClassINET { return false } - var respMsg *dns.Msg - respMsg = EmptyResponseFromMessage(msg) + respMsg := EmptyResponseFromMessage(msg) ttl := uint32(1) if question.Qtype == dns.TypeA { for _, xip := range ips {