diff options
| author | Shulhan <ms@kilabit.info> | 2024-09-07 14:44:36 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-09-07 14:44:36 +0700 |
| commit | b1572c628a4a07ab189a779f4e703918f9f3a50a (patch) | |
| tree | ee9726ee3b7a4b73ff734c4235b8032e8a25d6ce /html_backend.go | |
| parent | fb4449f82b5691154e962a95cad2f0794a22f996 (diff) | |
| download | asciidoctor-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.go | 8 |
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>") |
