Skip to content

Commit d1354f9

Browse files
Fix linting issues
Signed-off-by: Chris Cummer <[email protected]>
1 parent 25118d0 commit d1354f9

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

Makefile

+1-11
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,7 @@ install:
2929

3030
## lint: runs a number of code quality checks against the source code
3131
lint:
32-
@echo "\033[35mhttps://github.com/kisielk/errcheck\033[0m"
33-
errcheck ./til.go
34-
35-
@echo "\033[35mhttps://golang.org/cmd/vet/k\033[0m"
36-
go vet ./til.go
37-
38-
@echo "\033[35m# https://staticcheck.io/docs/k\033[0m"
39-
staticcheck ./til.go
40-
41-
@echo "\033[35m# https://github.com/mdempsky/unconvert\033[0m"
42-
unconvert ./...
32+
golangci-lint run
4333

4434
## test: runs the test suite
4535
test: build

til.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,10 @@ func buildIndexPage(pages []*Page, tagMap *TagMap) {
357357

358358
// Write the page list into the middle of the page
359359
content += pagesToHTMLUnorderedList(pages)
360-
content += fmt.Sprintf("\n")
360+
content += "\n"
361361

362362
// Write the footer content into the bottom of the index
363-
content += fmt.Sprintf("\n")
363+
content += "\n"
364364
content += footer()
365365

366366
// And write the file to disk
@@ -398,7 +398,7 @@ func buildTagPages(pages []*Page) *TagMap {
398398
content += pagesToHTMLUnorderedList(tagMap.PagesFor(tagName))
399399

400400
// Write the footer content into the bottom of the page
401-
content += fmt.Sprintf("\n")
401+
content += "\n"
402402
content += footer()
403403

404404
// And write the file to disk

0 commit comments

Comments
 (0)