Avoid unnecessary conversions

No need to convert these types.
This commit is contained in:
Christian Muehlhaeuser
2019-08-02 15:32:23 +00:00
committed by Bjørn Erik Pedersen
parent c577a9ed23
commit 6027ee1108
3 changed files with 3 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ var (
)
func (l *pageLexer) next() rune {
if int(l.pos) >= len(l.input) {
if l.pos >= len(l.input) {
l.width = 0
return eof
}