From 7a27e05cb706892e2d63b12313b7403986898e14 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sun, 5 Jan 2014 08:06:29 +0000 Subject: [PATCH] Remove setting compress to nil Useless operation as compress is already nil from the initialization. --- msg.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/msg.go b/msg.go index 58eaf8d6..45ab6001 100644 --- a/msg.go +++ b/msg.go @@ -1300,8 +1300,6 @@ func (dns *Msg) Pack() (msg []byte, err error) { var compression map[string]int if dns.Compress { compression = make(map[string]int) // Compression pointer mappings - } else { - compression = nil } // Convert convenient Msg into wire-like Header.