1
0
mirror of https://github.com/golang/go synced 2024-11-05 14:56:10 -07:00

go/build: test code cleanup: remove unnecessary func var

The earlier calls to test(false) in TestDependencies were
removed by https://golang.org/cl/12576

Change-Id: If5c7994172379c2d7f633d2e9c5261e668c754fa
Reviewed-on: https://go-review.googlesource.com/16117
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Hyang-Ah Hana Kim 2015-10-20 17:42:21 -04:00
parent 08d04ba2a4
commit 163653eeaa

View File

@ -456,7 +456,6 @@ func TestDependencies(t *testing.T) {
}
sort.Strings(all)
test := func(mustImport bool) {
for _, pkg := range all {
imports, err := findImports(pkg)
if err != nil {
@ -475,8 +474,6 @@ func TestDependencies(t *testing.T) {
}
}
}
test(true)
}
var buildIgnore = []byte("\n// +build ignore")