File tree 2 files changed +4
-14
lines changed
2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,7 @@ install:
29
29
30
30
# # lint: runs a number of code quality checks against the source code
31
31
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
43
33
44
34
# # test: runs the test suite
45
35
test : build
Original file line number Diff line number Diff line change @@ -357,10 +357,10 @@ func buildIndexPage(pages []*Page, tagMap *TagMap) {
357
357
358
358
// Write the page list into the middle of the page
359
359
content += pagesToHTMLUnorderedList (pages )
360
- content += fmt . Sprintf ( "\n " )
360
+ content += "\n "
361
361
362
362
// Write the footer content into the bottom of the index
363
- content += fmt . Sprintf ( "\n " )
363
+ content += "\n "
364
364
content += footer ()
365
365
366
366
// And write the file to disk
@@ -398,7 +398,7 @@ func buildTagPages(pages []*Page) *TagMap {
398
398
content += pagesToHTMLUnorderedList (tagMap .PagesFor (tagName ))
399
399
400
400
// Write the footer content into the bottom of the page
401
- content += fmt . Sprintf ( "\n " )
401
+ content += "\n "
402
402
content += footer ()
403
403
404
404
// And write the file to disk
You can’t perform that action at this time.
0 commit comments