Commit ab0b0d90 authored by Rob Pike's avatar Rob Pike

cmd/go: fix a couple of errors found by "go vet"

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/127410043
parent 4edcbe0d
...@@ -885,7 +885,7 @@ func (b *builder) build(a *action) (err error) { ...@@ -885,7 +885,7 @@ func (b *builder) build(a *action) (err error) {
} }
if len(gofiles) == 0 { if len(gofiles) == 0 {
return &build.NoGoError{a.p.Dir} return &build.NoGoError{Dir: a.p.Dir}
} }
// If we're doing coverage, preprocess the .go files and put them in the work directory // If we're doing coverage, preprocess the .go files and put them in the work directory
......
...@@ -109,7 +109,7 @@ func TestRepoRootForImportPath(t *testing.T) { ...@@ -109,7 +109,7 @@ func TestRepoRootForImportPath(t *testing.T) {
if want == nil { if want == nil {
if err == nil { if err == nil {
t.Errorf("RepoRootForImport(%q): Error expected but not received") t.Errorf("RepoRootForImport(%q): Error expected but not received", test.path)
} }
continue continue
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment