chore: enable some more linters (#16)

This commit is contained in:
Julian Tölle 2024-08-23 22:35:06 +02:00 committed by GitHub
parent f0eed8cc56
commit d5fd606577
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 48 additions and 18 deletions

View file

@ -331,7 +331,7 @@ func (r *Renderer) renderFencedCodeBlock(w util.BufWriter, source []byte, node a
return ast.WalkStop, fmt.Errorf(": %w", err)
}
if err := r.writeByte(w, '\n'); err != nil {
return ast.WalkStop, nil
return ast.WalkStop, fmt.Errorf(": %w", err)
}
// Write the contents of the fenced code block.