summaryrefslogtreecommitdiffstats
path: root/parser
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-08-02 15:32:23 +0000
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-10 20:12:38 +0200
commit6027ee11082d0b9d72de1d4d1980a702be294ad2 (patch)
treee4fa07986f8a0da40d470d11b2f9fd1a1a46b132 /parser
parentc577a9ed2347559783c44232e1f08414008c5203 (diff)
Avoid unnecessary conversions
No need to convert these types.
Diffstat (limited to 'parser')
-rw-r--r--parser/pageparser/pagelexer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/pageparser/pagelexer.go b/parser/pageparser/pagelexer.go
index d010c8152..2da8ebdc3 100644
--- a/parser/pageparser/pagelexer.go
+++ b/parser/pageparser/pagelexer.go
@@ -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
}