Enable 'intrange' linter

This commit is contained in:
Joshua Casey
2024-05-10 12:51:02 -05:00
parent 7b36c8ab54
commit e9d0ac5110
11 changed files with 29 additions and 28 deletions
@@ -55,7 +55,7 @@ func TestCache(t *testing.T) {
{APIGroup: "b", Kind: "b", Name: "a"},
{APIGroup: "b", Kind: "b", Name: "b"},
}
for tries := 0; tries < 10; tries++ {
for range 10 {
cache := New()
for _, i := range rand.Perm(len(keysInExpectedOrder)) {
cache.Store(keysInExpectedOrder[i], nil)