remove redondant variable declaration

Este commit está contenido en:
Antoine 2020-11-09 14:01:14 +01:00
padre aa3931e6df
commit 46fd83b798
Firmado por: antoine
ID de clave GPG: 098FB66FC0475E70
Se han modificado 1 ficheros con 1 adiciones y 3 borrados

Ver fichero

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