From: bep Date: Sat, 7 Mar 2015 11:59:04 +0000 (+0100) Subject: parser: apply some Golint rules X-Git-Tag: v0.14~219 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=63ffb916d67f9953320b402871c532c0b7a80efc;p=brevno-suite%2Fhugo parser: apply some Golint rules --- diff --git a/parser/page.go b/parser/page.go index e384d385..65a62a56 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,