Skip to content

Commit

Permalink
chore: remove accidental changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rgmz authored and Richard Gomez committed Jan 4, 2024
1 parent a62d713 commit 8e3cc43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,11 +582,11 @@ func (e *Engine) notifyResults(ctx context.Context) {
// want to include duplicate results with the same decoder type.
// Duplicate results with the same decoder type SHOULD have their own entry in the
// results list, this would happen if the same secret is found multiple times.
key := fmt.Sprintf("%s%s%s", r.DetectorType.String(), r.Raw, r.RawV2)
if _, ok := e.dedupeCache.Get(key); ok {
//if res, ok := val.(detectorspb.DecoderType); ok && res != r.DecoderType {
continue
//}
key := fmt.Sprintf("%s%s%s%+v", r.DetectorType.String(), r.Raw, r.RawV2, r.SourceMetadata)
if val, ok := e.dedupeCache.Get(key); ok {
if res, ok := val.(detectorspb.DecoderType); ok && res != r.DecoderType {
continue
}
}
e.dedupeCache.Add(key, r.DecoderType)

Expand Down

0 comments on commit 8e3cc43

Please sign in to comment.