mirror of https://github.com/daffainfo/nuclei.git
Fixed a linter error
parent
831114bdbd
commit
44e304179a
|
@ -213,8 +213,6 @@ func questionTypeToInt(questionType string) uint16 {
|
||||||
question = dns.TypeDS
|
question = dns.TypeDS
|
||||||
case "AAAA":
|
case "AAAA":
|
||||||
question = dns.TypeAAAA
|
question = dns.TypeAAAA
|
||||||
default:
|
|
||||||
question = dns.TypeA
|
|
||||||
}
|
}
|
||||||
return question
|
return question
|
||||||
}
|
}
|
||||||
|
@ -237,8 +235,6 @@ func classToInt(class string) uint16 {
|
||||||
result = dns.ClassNONE
|
result = dns.ClassNONE
|
||||||
case "ANY":
|
case "ANY":
|
||||||
result = dns.ClassANY
|
result = dns.ClassANY
|
||||||
default:
|
|
||||||
result = dns.ClassINET
|
|
||||||
}
|
}
|
||||||
return uint16(result)
|
return uint16(result)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue