1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-12-01 23:12:29 +02:00
Use
https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize
to update code to new style.

---------

Co-authored-by: Flc゛ <four_leaf_clover@foxmail.com>
Co-authored-by: Damien Mathieu <42@dmathieu.com>
This commit is contained in:
Mikhail Mazurskiy
2025-07-29 18:19:11 +10:00
committed by GitHub
parent 7bcbb6a49a
commit 5e1c62a2d5
97 changed files with 234 additions and 268 deletions

View File

@@ -55,13 +55,13 @@ func verifyRing(t *testing.T, r *ring, N int, sum int) {
}
func TestNewRing(t *testing.T) {
for i := 0; i < 10; i++ {
for i := range 10 {
// Empty value.
r := newRing(i)
verifyRing(t, r, i, -1)
}
for n := 0; n < 10; n++ {
for n := range 10 {
r := newRing(n)
for i := 1; i <= n; i++ {
var rec Record