Skip to content

Commit

Permalink
Extract FP logic correctly at other call site #3476
Browse files Browse the repository at this point in the history
  • Loading branch information
rosecodym authored Oct 21, 2024
1 parent fa78cd7 commit 3ab6086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3ab6086

Please sign in to comment.