Browse Source

remove redondant variable declaration

master
Antoine 11 months ago
parent
commit
46fd83b798
Signed by: antoine <antoinroux@hotmail.fr> GPG Key ID: 098FB66FC0475E70
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      cmd/wireformat/wireformat.go

+ 1
- 3
cmd/wireformat/wireformat.go View File

@@ -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{}


Loading…
Cancel
Save