remove redondant variable declaration
This commit is contained in:
parent
aa3931e6df
commit
46fd83b798
@ -22,13 +22,11 @@ func main() {
|
|||||||
// remove timestamp prefix from log out
|
// remove timestamp prefix from log out
|
||||||
log.SetFlags(0)
|
log.SetFlags(0)
|
||||||
|
|
||||||
var body []byte
|
|
||||||
var err error
|
|
||||||
if *file != "" {
|
if *file != "" {
|
||||||
if *file == "-" {
|
if *file == "-" {
|
||||||
*file = os.Stdin.Name()
|
*file = os.Stdin.Name()
|
||||||
}
|
}
|
||||||
body, err = ioutil.ReadFile(*file)
|
body, err := ioutil.ReadFile(*file)
|
||||||
check.Check(err)
|
check.Check(err)
|
||||||
|
|
||||||
msg := &dns.Msg{}
|
msg := &dns.Msg{}
|
||||||
|
Loading…
Reference in New Issue
Block a user