mirror of https://github.com/daffainfo/nuclei.git
Fixed lint errors
parent
6a673053c2
commit
e48c8bef23
|
@ -37,7 +37,7 @@ func main() {
|
|||
var buf bytes.Buffer
|
||||
encoder := json.NewEncoder(&buf)
|
||||
encoder.SetIndent("", " ")
|
||||
encoder.Encode(jsonschemaData)
|
||||
_ = encoder.Encode(jsonschemaData)
|
||||
|
||||
schema := buf.String()
|
||||
for _, match := range pathRegex.FindAllStringSubmatch(schema, -1) {
|
||||
|
|
|
@ -55,7 +55,7 @@ func (i *Exporter) Export(event *output.ResultEvent) error {
|
|||
templatePath := strings.TrimPrefix(event.TemplatePath, i.home)
|
||||
|
||||
h := sha1.New()
|
||||
h.Write([]byte(event.Host))
|
||||
_, _ = h.Write([]byte(event.Host))
|
||||
templateID := event.TemplateID + "-" + hex.EncodeToString(h.Sum(nil))
|
||||
|
||||
fullDescription := format.MarkdownDescription(event)
|
||||
|
|
Loading…
Reference in New Issue