From 5edb175b40a87f3dba90aed14390de9affee77f2 Mon Sep 17 00:00:00 2001 From: Leon Klingele Date: Mon, 4 Feb 2019 12:44:00 +0000 Subject: [PATCH] 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 TryBot-Result: Gobot Gobot Reviewed-by: Keith Randall --- src/cmd/compile/internal/ssa/debug_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.50.0