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

@ -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 {