From: Daniel Martí Date: Thu, 6 Apr 2017 11:50:41 +0000 (+0100) Subject: regexp: remove redundant break X-Git-Tag: go1.9beta1~489 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7d547b6411fa6e07e22aca7c98c90d17f7449927;p=gostls13.git 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í TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/regexp/onepass.go b/src/regexp/onepass.go index f6cd5ac7c1..3ceb461905 100644 --- a/src/regexp/onepass.go +++ b/src/regexp/onepass.go @@ -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 {