aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd/compile/internal/ssa/debug_test.go3
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
}