mirror of
https://github.com/golang/go
synced 2024-11-24 23:47:55 -07:00
Remove obsolete errcheck.
This commit is contained in:
parent
0684661728
commit
f7f708e7b7
3
src/cmd/go/internal/cache/default.go
vendored
3
src/cmd/go/internal/cache/default.go
vendored
@ -40,9 +40,6 @@ func initDefaultCache() Cache {
|
|||||||
base.Fatalf("build cache is required, but could not be located: %v", err)
|
base.Fatalf("build cache is required, but could not be located: %v", err)
|
||||||
}
|
}
|
||||||
if dir == "off" {
|
if dir == "off" {
|
||||||
if defaultDirErr != nil {
|
|
||||||
base.Fatalf("build cache is required, but could not be located: %v", defaultDirErr)
|
|
||||||
}
|
|
||||||
base.Fatalf("build cache is disabled by GOCACHE=off, but required as of Go 1.12")
|
base.Fatalf("build cache is disabled by GOCACHE=off, but required as of Go 1.12")
|
||||||
}
|
}
|
||||||
if err := os.MkdirAll(dir, 0777); err != nil {
|
if err := os.MkdirAll(dir, 0777); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user