aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--html_backend.go8
2 files changed, 5 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index b2d6ff9..5693121 100644
--- a/Makefile
+++ b/Makefile
@@ -8,9 +8,7 @@ all: test lint
lint:
-fieldalignment ./...
-shadow ./...
- -golangci-lint run \
- --presets bugs,metalinter,performance,unused \
- ./...
+ go vet ./...
test:
go test -coverprofile=cover.out ./...
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>")