lint: enable gofumpt extra rules (#690)

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
This commit is contained in:
Nathan Baulch
2025-09-26 21:32:59 +10:00
committed by GitHub
parent 1df48c4a2a
commit f5aac81cc0
22 changed files with 118 additions and 115 deletions

View File

@@ -13,7 +13,7 @@ func TestMap(t *testing.T) {
t.Parallel()
is := assert.New(t)
result1 := Map([]int{1, 2, 3, 4}, func(x int, _ int) string {
result1 := Map([]int{1, 2, 3, 4}, func(x, _ int) string {
return "Hello"
})
result2 := Map([]int64{1, 2, 3, 4}, func(x int64, _ int) string {
@@ -30,7 +30,7 @@ func TestForEach(t *testing.T) {
var counter uint64
collection := []int{1, 2, 3, 4}
ForEach(collection, func(x int, i int) {
ForEach(collection, func(x, i int) {
atomic.AddUint64(&counter, 1)
})