summaryrefslogtreecommitdiffstats
path: root/transform/absurlreplacer.go
diff options
context:
space:
mode:
Diffstat (limited to 'transform/absurlreplacer.go')
-rw-r--r--transform/absurlreplacer.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/transform/absurlreplacer.go b/transform/absurlreplacer.go
index b834bcdcc..8e8269a05 100644
--- a/transform/absurlreplacer.go
+++ b/transform/absurlreplacer.go
@@ -85,9 +85,9 @@ func (l *absurllexer) match(r rune) {
if r == p.r[l.idx] {
l.matches[j] = true
found = true
- if l.checkMatchState(r, j) {
- return
- }
+ // checkMatchState will only return true when r=='=', so
+ // we can safely ignore the return value here.
+ l.checkMatchState(r, j)
}
}
@@ -249,9 +249,6 @@ func (l *absurllexer) replace() {
l.matches[i] = false
}
}
- if p == nil {
- panic("illegal state: curr is nil when state is full")
- }
l.ms = matchStateNone
p.f(l)
}