From 3ab60865c84ee384a099f4e9b6001f6a50a7d1a2 Mon Sep 17 00:00:00 2001 From: Cody Rose Date: Mon, 21 Oct 2024 09:51:53 -0400 Subject: [PATCH] Extract FP logic correctly at other call site #3476 --- pkg/engine/engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index 4e0ee318df07..1c79fe50f9a3 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -1035,7 +1035,7 @@ func (e *Engine) detectChunk(ctx context.Context, data detectableChunk) { ctx = context.WithValue(ctx, "detector", data.detector.Key.Loggable()) - isFalsePositive := detectors.GetFalsePositiveCheck(data.detector) + isFalsePositive := detectors.GetFalsePositiveCheck(data.detector.Detector) var matchCount int // To reduce the overhead of regex calls in the detector,