aboutsummaryrefslogtreecommitdiff
path: root/html_backend.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-09-07 14:44:36 +0700
committerShulhan <ms@kilabit.info>2024-09-07 14:44:36 +0700
commitb1572c628a4a07ab189a779f4e703918f9f3a50a (patch)
treeee9726ee3b7a4b73ff734c4235b8032e8a25d6ce /html_backend.go
parentfb4449f82b5691154e962a95cad2f0794a22f996 (diff)
downloadasciidoctor-go-b1572c628a4a07ab189a779f4e703918f9f3a50a.tar.xz
Makefile: replace golangci-lint with "go vet"
This is the second we remove golangci-lint. Previously, we replace it with revive, now we replace it with go internal tools "go vet". The problem is the same, golangci-lint does not works when compiled or using gotip. Also, on VM with 8GB memory, it will crash due to OOM.
Diffstat (limited to 'html_backend.go')
-rw-r--r--html_backend.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/html_backend.go b/html_backend.go
index 17e4769..b404ba7 100644
--- a/html_backend.go
+++ b/html_backend.go
@@ -1113,10 +1113,10 @@ func htmlWriteInlinePass(doc *Document, el *element, out io.Writer) {
func htmlWriteListDescription(el *element, out io.Writer) {
var openTag string
switch {
- case el.isStyleQandA() == true:
+ case el.isStyleQandA():
htmlWriteBlockBegin(el, out, `qlist qanda`)
openTag = "\n<ol>"
- case el.isStyleHorizontal() == true:
+ case el.isStyleHorizontal():
htmlWriteBlockBegin(el, out, `hdlist`)
openTag = "\n<table>"
default:
@@ -1129,9 +1129,9 @@ func htmlWriteListDescription(el *element, out io.Writer) {
func htmlWriteListDescriptionEnd(el *element, out io.Writer) {
switch {
- case el.isStyleQandA() == true:
+ case el.isStyleQandA():
fmt.Fprintf(out, "\n</ol>\n</div>")
- case el.isStyleHorizontal() == true:
+ case el.isStyleHorizontal():
fmt.Fprintf(out, "\n</table>\n</div>")
default:
fmt.Fprintf(out, "\n</dl>\n</div>")