mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-12 04:45:52 +02:00
lint: style, autofix (#3354)
This commit is contained in:
parent
bbe7752967
commit
7a1ad8376a
48 changed files with 177 additions and 169 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue