lint: fix CI warnings and avoid named return parameters (#682)

This commit is contained in:
Nathan Baulch
2025-09-25 11:44:33 +10:00
committed by GitHub
parent 21a523ddc0
commit 52d31f788f
7 changed files with 95 additions and 71 deletions

View File

@@ -288,7 +288,7 @@ func TestWithoutBy(t *testing.T) {
result2 := WithoutBy([]User{}, func(item User) int { return item.Age }, 1, 2, 3)
result3 := WithoutBy([]User{}, func(item User) string { return item.Name })
is.Equal([]User{{Name: "peter"}}, result1)
is.Empty(result2)
is.Empty(result2)
is.Empty(result3)
type myStrings []string