Fixed lint errors

dev
Ice3man543 2021-08-24 13:35:01 +05:30
parent 6a673053c2
commit e48c8bef23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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)