1
0
mirror of https://github.com/golang/go synced 2024-11-23 07:10:05 -07:00

cmd/compile/internal/ssa: ignore error from second call to MatchString in test

Change-Id: I714612b41facc8d1ec22974e8aaf2a5a3592e8f5
GitHub-Last-Rev: a0b3917e45
GitHub-Pull-Request: golang/go#29998
Reviewed-on: https://go-review.googlesource.com/c/160422
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
Leon Klingele 2019-02-04 12:44:00 +00:00 committed by Daniel Martí
parent aa5165d62c
commit 5edb175b40

View File

@ -934,7 +934,8 @@ func expect(want string, got tstring) {
if match { if match {
return return
} }
match, err = regexp.MatchString(want, got.e) // Ignore error as we have already checked for it before
match, _ = regexp.MatchString(want, got.e)
if match { if match {
return return
} }