Skip to content

Commit 192457a

Browse files
committed
fix: lint issues fix
1 parent 9042087 commit 192457a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

internal/collector/securityviolationsprocessor/processor.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,14 @@ func (p *securityViolationsProcessor) setSyslogAttributes(lr plog.LogRecord, m *
152152
}
153153
}
154154

155-
func (p *securityViolationsProcessor) processAppProtectMessage(lr plog.LogRecord, message string, hostname *string) error {
155+
func (p *securityViolationsProcessor) processAppProtectMessage(lr plog.LogRecord,
156+
message string,
157+
hostname *string,
158+
) error {
156159
appProtectLog := p.parseAppProtectLog(message, hostname)
157160

158161
jsonData, marshalErr := json.Marshal(appProtectLog)
159162
if marshalErr != nil {
160-
161163
return marshalErr
162164
}
163165

@@ -285,7 +287,9 @@ func (p *securityViolationsProcessor) parseCSVLog(message string) map[string]str
285287
return fieldValueMap
286288
}
287289

288-
func (p *securityViolationsProcessor) mapKVToSecurityViolationEvent(log *SecurityViolationEvent, kvMap map[string]string) {
290+
func (p *securityViolationsProcessor) mapKVToSecurityViolationEvent(log *SecurityViolationEvent,
291+
kvMap map[string]string,
292+
) {
289293
log.PolicyName = kvMap["policy_name"]
290294
log.SupportID = kvMap["support_id"]
291295
log.Outcome = kvMap["outcome"]

0 commit comments

Comments
 (0)