From 7d547b6411fa6e07e22aca7c98c90d17f7449927 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Thu, 6 Apr 2017 12:50:41 +0100 Subject: [PATCH] regexp: remove redundant break MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/regexp/onepass.go | 1 - 1 file changed, 1 deletion(-) 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 { -- 2.50.0