]> Cypherpunks repositories - gostls13.git/commit
cmd/go: simplify code that still assumed the build cache could be nil
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 26 Apr 2023 17:45:01 +0000 (10:45 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 26 Apr 2023 20:37:24 +0000 (20:37 +0000)
commitfa80fe7b1cc770d37b2263eb5d81c87db75ceb80
tree648b6421b8ef2b311580e2f993ef42a1b10e0b14
parent7b874619beec9ec88928f72efa8dc5bc44fec2d7
cmd/go: simplify code that still assumed the build cache could be nil

cache.Default always returns a non-nil value since Go 1.12; the docs were
updated in https://go.dev/cl/465555.

This updates all the callers of cache.Default that were checking whether
the result was nil so the code isn't misleading/confusing to readers.

Change-Id: Ia63567dd70affef6041c744259f65cea79a2752e
Reviewed-on: https://go-review.googlesource.com/c/go/+/489355
Auto-Submit: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/go/internal/list/list.go
src/cmd/go/internal/test/test.go
src/cmd/go/internal/work/buildid.go