mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
516e6f6d5d
commit
7d547b6411
1 changed files with 0 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue