all: go fmt

Change-Id: I6a6a636c341d4ba3518be7f6806093bbdff11c88
Reviewed-on: https://go-review.googlesource.com/c/go/+/689535
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
Michael Pratt 2025-07-22 11:17:06 -04:00 committed by Gopher Robot
parent 1aaf7422f1
commit 4ed9943b26
5 changed files with 7 additions and 9 deletions

View file

@ -114,7 +114,7 @@ func findCurrent(t *testing.T) (string, string) {
if ver != cgroup.V2 {
t.Skipf("cgroup: running on cgroup v%d want v2", ver)
}
rel := string(buf[1:n]) // The returned path always starts with /, skip it.
rel := string(buf[1:n]) // The returned path always starts with /, skip it.
rel = filepath.Join(".", rel) // Make sure this isn't empty string at root.
return mount, rel
}

View file

@ -73,4 +73,3 @@ func Atoi32(s string) (int32, bool) {
}
return 0, false
}

View file

@ -102,4 +102,3 @@ func TestAtoi32(t *testing.T) {
}
}
}

View file

@ -19,10 +19,10 @@ import (
// GOMAXPROCS defaults to that value.
//
// Otherwise, the Go runtime selects an appropriate default value from a combination of
// - the number of logical CPUs on the machine,
// - the processs CPU affinity mask,
// - and, on Linux, the processs average CPU throughput limit based on cgroup CPU
// quota, if any.
// - the number of logical CPUs on the machine,
// - the processs CPU affinity mask,
// - and, on Linux, the processs average CPU throughput limit based on cgroup CPU
// quota, if any.
//
// If GODEBUG=containermaxprocs=0 is set and GOMAXPROCS is not set by the
// environment variable, then GOMAXPROCS instead defaults to the value of

View file

@ -263,7 +263,7 @@ func DecodeLastRune(p []byte) (r rune, size int) {
// guard against O(n^2) behavior when traversing
// backwards through strings with long sequences of
// invalid UTF-8.
lim := max(end - UTFMax, 0)
lim := max(end-UTFMax, 0)
for start--; start >= lim; start-- {
if RuneStart(p[start]) {
break
@ -300,7 +300,7 @@ func DecodeLastRuneInString(s string) (r rune, size int) {
// guard against O(n^2) behavior when traversing
// backwards through strings with long sequences of
// invalid UTF-8.
lim := max(end - UTFMax, 0)
lim := max(end-UTFMax, 0)
for start--; start >= lim; start-- {
if RuneStart(s[start]) {
break