Fix linter list and fix errors discovered by new staticcheck

This commit is contained in:
Andrey Smirnov
2019-01-20 00:01:17 +03:00
parent a64807efda
commit 3b5840e248
8 changed files with 9 additions and 23 deletions
-8
View File
@@ -119,14 +119,6 @@ func (l *lexer) backup() {
l.pos -= l.width
}
// peek returns but does not consume
// the next rune in the input.
func (l *lexer) peek() rune {
r := l.next()
l.backup()
return r
}
func (l *lexer) Current() item {
if l.last.typ == 0 {
l.last = <-l.items