mirror of
https://github.com/golang/go
synced 2024-11-16 23:04:44 -07:00
cmd/compile/internal/ssa: ignore error from second call to MatchString in test
This commit is contained in:
parent
56c9f8e8cf
commit
a0b3917e45
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user