parser: apply some Golint rules

This commit is contained in:
bep 2015-03-07 12:59:04 +01:00
parent 81c41d6f20
commit 63ffb916d6

View file

@ -132,7 +132,7 @@ func peekLine(r *bufio.Reader) (line []byte, err error) {
if idx == -1 { if idx == -1 {
return firstFive, nil return firstFive, nil
} }
idx += 1 // include newline. idx++ // include newline.
return firstFive[:idx], nil return firstFive[:idx], nil
} }
@ -184,8 +184,8 @@ func extractFrontMatterDelims(r *bufio.Reader, left, right []byte) (fm FrontMatt
var ( var (
c byte c byte
buf bytes.Buffer buf bytes.Buffer
level int = 0 level int
sameDelim bool = bytes.Equal(left, right) sameDelim = bytes.Equal(left, right)
) )
// Frontmatter must start with a delimiter. To check it first, // Frontmatter must start with a delimiter. To check it first,