diff --git a/src/cmd/compile/internal/ssa/debug_test.go b/src/cmd/compile/internal/ssa/debug_test.go index 0a409bec2cd..7246a13ff6c 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 }