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
This commit is contained in:
Rob Pike 2014-08-15 12:35:01 -07:00
parent 4edcbe0d40
commit ab0b0d9031
2 changed files with 2 additions and 2 deletions

View file

@ -885,7 +885,7 @@ func (b *builder) build(a *action) (err error) {
}
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

View file

@ -109,7 +109,7 @@ func TestRepoRootForImportPath(t *testing.T) {
if want == 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
}