1
0
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:
Leon Klingele 2019-01-30 17:58:44 +01:00
parent 56c9f8e8cf
commit a0b3917e45
No known key found for this signature in database
GPG Key ID: 0C8AF48831EEC211

View File

@ -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
}