]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/ssa: ignore error from second call to MatchString in test
authorLeon Klingele <git@leonklingele.de>
Mon, 4 Feb 2019 12:44:00 +0000 (12:44 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 2 Mar 2019 17:32:52 +0000 (17:32 +0000)
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 <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/debug_test.go

index 0a409bec2cda3723f12a0c84d817aa2d31c6950d..7246a13ff6ce4cc0d92c910ddaf4cbfc64e73a99 100644 (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
                }