1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:54:59 -07:00

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: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Daniel Martí 2017-04-06 12:50:41 +01:00 committed by Brad Fitzpatrick
parent 516e6f6d5d
commit 7d547b6411

View File

@ -364,7 +364,6 @@ func makeOnePass(p *onePassProg) *onePassProg {
}
case syntax.InstMatch, syntax.InstFail:
m[pc] = inst.Op == syntax.InstMatch
break
case syntax.InstRune:
m[pc] = false
if len(inst.Next) > 0 {