From 8e3cc43d53664ae9caa8a471902da1e8d1ac8f36 Mon Sep 17 00:00:00 2001 From: Richard Gomez Date: Wed, 3 Jan 2024 20:29:21 -0500 Subject: [PATCH] chore: remove accidental changes --- pkg/engine/engine.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index 5d1ce8c7a6ed..ab33110f4f20 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -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)