1
0
mirror of https://github.com/golang/go synced 2024-11-15 03:30:37 -07:00

cmd/go/internal/telemetrystats: fix assignment to ok

Change-Id: I7ee6198949bd2ea7e92d3e75c94ead04c31be491
Reviewed-on: https://go-review.googlesource.com/c/go/+/588236
Auto-Submit: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
Michael Matloob 2024-05-24 11:19:15 -04:00 committed by Gopher Robot
parent 3ea2be1e47
commit 2785f4fad6

View File

@ -34,7 +34,7 @@ func incrementVersionCounters() {
}
major, minor, ok := majorMinor(convert(v.Release[:]))
if runtime.GOOS == "aix" {
major, minor, ok = convert(v.Version[:]), convert(v.Release[:]), ok
major, minor, ok = convert(v.Version[:]), convert(v.Release[:]), true
}
if !ok {
telemetry.Inc(fmt.Sprintf("go/platform/host/%s/version:unknown-bad-format", runtime.GOOS))