CI: Run gofmt on Linting action (#110159)

* CI: Run gofmt on Linting action

* Chore: Run gofmt on all packages
This commit is contained in:
Matheus Macabu
2025-08-26 16:14:03 +02:00
committed by GitHub
parent d34338be02
commit 78ac555c4d
75 changed files with 169 additions and 73 deletions
+1 -1
View File
@@ -382,7 +382,7 @@ func TestSearchGetOrCreateIndexWithIndexUpdate(t *testing.T) {
buildEmptyIndexCalls: []buildEmptyIndexCall{},
cache: map[NamespacedResource]ResourceIndex{
NamespacedResource{Namespace: "ns", Group: "group", Resource: "bad"}: &MockResourceIndex{
{Namespace: "ns", Group: "group", Resource: "bad"}: &MockResourceIndex{
updateIndexError: failedErr,
},
},
@@ -524,7 +524,7 @@ func runTestIntegrationBackendListModifiedSince(t *testing.T, backend resource.S
require.GreaterOrEqual(t, latestRv, rvDeleted)
counter := 0
for _, _ = range seq {
for range seq {
counter++
}
require.Equal(t, 0, counter) // no events should be returned