lint: style, autofix (#3354)

This commit is contained in:
mmetc 2024-12-05 10:40:48 +01:00 committed by GitHub
parent bbe7752967
commit 7a1ad8376a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
48 changed files with 177 additions and 169 deletions

View file

@ -151,7 +151,7 @@ func testOneParser(pctx *UnixParserCtx, ectx EnricherCtx, dir string, b *testing
b.ResetTimer()
}
for range(count) {
for range count {
if !testFile(tests, *pctx, pnodes) {
return errors.New("test failed")
}
@ -285,7 +285,7 @@ func matchEvent(expected types.Event, out types.Event, debug bool) ([]string, bo
valid = true
for mapIdx := range(len(expectMaps)) {
for mapIdx := range len(expectMaps) {
for expKey, expVal := range expectMaps[mapIdx] {
outVal, ok := outMaps[mapIdx][expKey]
if !ok {