1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:00:09 -07:00

Remove obsolete errcheck.

This commit is contained in:
Max Neverov 2024-11-21 17:45:21 +01:00
parent 0684661728
commit f7f708e7b7

View File

@ -40,9 +40,6 @@ func initDefaultCache() Cache {
base.Fatalf("build cache is required, but could not be located: %v", err)
}
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")
}
if err := os.MkdirAll(dir, 0777); err != nil {