Minor modernization to use a tagged switch statement in lieu of
if-else chain.
Change-Id: I132d279d421b4a609403f85f9f1ddfc2605a5399
Reviewed-on: https://go-review.googlesource.com/c/go/+/715341
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
}
var m float64
- if runtime.GOARCH == "amd64" {
+ switch runtime.GOARCH {
+ case "amd64":
m = 0.0111 // > 98.89% obtained on amd64, no backsliding
- } else if runtime.GOARCH == "riscv64" {
+ case "riscv64":
m = 0.03 // XXX temporary update threshold to 97% for regabi
- } else {
+ default:
m = 0.02 // expect 98% elsewhere.
}