summaryrefslogtreecommitdiffhomepage
path: root/parser
diff options
context:
space:
mode:
authorbep <[email protected]>2015-03-07 12:59:04 +0100
committerbep <[email protected]>2015-03-07 12:59:04 +0100
commit63ffb916d67f9953320b402871c532c0b7a80efc (patch)
treeb6250f94d6d4658460f6965ebc6bec1512cd3418 /parser
parent81c41d6f20a02a108beab0f05a6bf4a6721280e2 (diff)
downloadhugo-63ffb916d67f9953320b402871c532c0b7a80efc.tar.gz
hugo-63ffb916d67f9953320b402871c532c0b7a80efc.zip
parser: apply some Golint rules
Diffstat (limited to 'parser')
-rw-r--r--parser/page.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/parser/page.go b/parser/page.go
index e384d3858..65a62a566 100644
--- a/parser/page.go
+++ b/parser/page.go
@@ -132,7 +132,7 @@ func peekLine(r *bufio.Reader) (line []byte, err error) {
if idx == -1 {
return firstFive, nil
}
- idx += 1 // include newline.
+ idx++ // include newline.
return firstFive[:idx], nil
}
@@ -184,8 +184,8 @@ func extractFrontMatterDelims(r *bufio.Reader, left, right []byte) (fm FrontMatt
var (
c byte
buf bytes.Buffer
- level int = 0
- sameDelim bool = bytes.Equal(left, right)
+ level int
+ sameDelim = bytes.Equal(left, right)
)
// Frontmatter must start with a delimiter. To check it first,