Skip to content

Commit 3ab6086

Browse files
authored
Extract FP logic correctly at other call site #3476
1 parent fa78cd7 commit 3ab6086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/engine/engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ func (e *Engine) detectChunk(ctx context.Context, data detectableChunk) {
10351035

10361036
ctx = context.WithValue(ctx, "detector", data.detector.Key.Loggable())
10371037

1038-
isFalsePositive := detectors.GetFalsePositiveCheck(data.detector)
1038+
isFalsePositive := detectors.GetFalsePositiveCheck(data.detector.Detector)
10391039

10401040
var matchCount int
10411041
// To reduce the overhead of regex calls in the detector,

0 commit comments

Comments
 (0)