diff options
| author | Leon Klingele <git@leonklingele.de> | 2019-02-04 12:44:00 +0000 |
|---|---|---|
| committer | Daniel Martà <mvdan@mvdan.cc> | 2019-03-02 17:32:52 +0000 |
| commit | 5edb175b40a87f3dba90aed14390de9affee77f2 (patch) | |
| tree | 744984dcc99727cf33a3a61d25c80452210144fc /src | |
| parent | aa5165d62cf623230dd820afe2bdba92bd15beeb (diff) | |
| download | go-5edb175b40a87f3dba90aed14390de9affee77f2.tar.xz | |
cmd/compile/internal/ssa: ignore error from second call to MatchString in test
Change-Id: I714612b41facc8d1ec22974e8aaf2a5a3592e8f5
GitHub-Last-Rev: a0b3917e45bc1d24590e9c9cb3550da4c4008c49
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/compile/internal/ssa/debug_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/debug_test.go b/src/cmd/compile/internal/ssa/debug_test.go index 0a409bec2c..7246a13ff6 100644 --- a/src/cmd/compile/internal/ssa/debug_test.go +++ b/src/cmd/compile/internal/ssa/debug_test.go @@ -934,7 +934,8 @@ func expect(want string, got tstring) { if match { 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 { return } |
