mirror of
https://github.com/samber/lo.git
synced 2025-09-27 12:22:17 +08:00
lint: fix CI warnings and avoid named return parameters (#682)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user