From 46fd83b798b67976c943b8c89550b2557681f7cf Mon Sep 17 00:00:00 2001 From: Antoine Date: Mon, 9 Nov 2020 14:01:14 +0100 Subject: [PATCH] remove redondant variable declaration --- cmd/wireformat/wireformat.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/wireformat/wireformat.go b/cmd/wireformat/wireformat.go index a8acee6..c09645f 100644 --- a/cmd/wireformat/wireformat.go +++ b/cmd/wireformat/wireformat.go @@ -22,13 +22,11 @@ func main() { // remove timestamp prefix from log out log.SetFlags(0) - var body []byte - var err error if *file != "" { if *file == "-" { *file = os.Stdin.Name() } - body, err = ioutil.ReadFile(*file) + body, err := ioutil.ReadFile(*file) check.Check(err) msg := &dns.Msg{}