mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
lint: style, autofix (#3354)
This commit is contained in:
parent
bbe7752967
commit
7a1ad8376a
48 changed files with 177 additions and 169 deletions
|
@ -248,14 +248,18 @@ func stageidx(stage string, stages []string) int {
|
|||
return -1
|
||||
}
|
||||
|
||||
var ParseDump bool
|
||||
var DumpFolder string
|
||||
var (
|
||||
ParseDump bool
|
||||
DumpFolder string
|
||||
)
|
||||
|
||||
var StageParseCache dumps.ParserResults
|
||||
var StageParseMutex sync.Mutex
|
||||
var (
|
||||
StageParseCache dumps.ParserResults
|
||||
StageParseMutex sync.Mutex
|
||||
)
|
||||
|
||||
func Parse(ctx UnixParserCtx, xp types.Event, nodes []Node) (types.Event, error) {
|
||||
var event = xp
|
||||
event := xp
|
||||
|
||||
/* the stage is undefined, probably line is freshly acquired, set to first stage !*/
|
||||
if event.Stage == "" && len(ctx.Stages) > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue