mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
src: fix a couple of govet-discovered errors.
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5021042
This commit is contained in:
parent
a775fbf8a4
commit
b47bbecf7a
2 changed files with 2 additions and 2 deletions
|
|
@ -558,7 +558,7 @@ Reading:
|
||||||
}
|
}
|
||||||
have := re.FindStringSubmatchIndex(text)
|
have := re.FindStringSubmatchIndex(text)
|
||||||
if (len(have) > 0) != match {
|
if (len(have) > 0) != match {
|
||||||
t.Errorf("%s:%d: %#q.Match(%#q) = %v, but %#q.FindSubmatchIndex(%#q) = %v", file, lineno, pattern, text, match, text, have)
|
t.Errorf("%s:%d: %#q.Match(%#q) = %v, but %#q.FindSubmatchIndex(%#q) = %v", file, lineno, pattern, text, match, pattern, text, have)
|
||||||
continue Testing
|
continue Testing
|
||||||
}
|
}
|
||||||
if len(have) > len(pos) {
|
if len(have) > len(pos) {
|
||||||
|
|
|
||||||
|
|
@ -262,7 +262,7 @@ func TestReaderError(t *testing.T) {
|
||||||
t.Errorf("decoding %s: %s, want %s", tt.file, err, tt.err)
|
t.Errorf("decoding %s: %s, want %s", tt.file, err, tt.err)
|
||||||
}
|
}
|
||||||
if img != nil {
|
if img != nil {
|
||||||
t.Errorf("decoding %s: have image + error")
|
t.Errorf("decoding %s: have image + error", tt.file)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue