mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-20 06:54:32 +00:00
linter(testifylint): use Len or Empty for arrays testing (#7555)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -36,7 +36,7 @@ func TestHas(t *testing.T) {
|
||||
func TestExcept(t *testing.T) {
|
||||
items := []string{}
|
||||
except := Except(items, "asdf")
|
||||
assert.Len(t, except, 0)
|
||||
assert.Empty(t, except)
|
||||
|
||||
items = []string{"a", "b", "c"}
|
||||
assert.Equal(t, []string{"b", "c"}, Except(items, "a"))
|
||||
|
||||
Reference in New Issue
Block a user