Commit 7d547b64 authored by Daniel Martí's avatar Daniel Martí Committed by Brad Fitzpatrick

regexp: remove redundant break

Breaks are implicit, and since there is no outer loop this one could not
mean a loop break that was missing a label.

Change-Id: Ie91018db1825aa8285c1aa55c9d28fc7ec7148af
Reviewed-on: https://go-review.googlesource.com/39691
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 516e6f6d
...@@ -364,7 +364,6 @@ func makeOnePass(p *onePassProg) *onePassProg { ...@@ -364,7 +364,6 @@ func makeOnePass(p *onePassProg) *onePassProg {
} }
case syntax.InstMatch, syntax.InstFail: case syntax.InstMatch, syntax.InstFail:
m[pc] = inst.Op == syntax.InstMatch m[pc] = inst.Op == syntax.InstMatch
break
case syntax.InstRune: case syntax.InstRune:
m[pc] = false m[pc] = false
if len(inst.Next) > 0 { if len(inst.Next) > 0 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment