Fix linter list and fix errors discovered by new staticcheck

This commit is contained in:
Andrey Smirnov committed 2019-01-20 00:01:17 +03:00
1 parent a64807efda
commit 3b5840e248
8 files changed
+9 -23

No files matched your search

-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