Skip to content

Commit

Permalink
add a break statement when iterating through keywords (trufflesecurit…
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav authored Mar 15, 2023
1 parent ef9488c commit f0b6b5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ func (e *Engine) detectorWorker(ctx context.Context) {
for _, kw := range detector.Keywords() {
if _, ok := matchedKeywords[strings.ToLower(kw)]; ok {
chunkContainsKeyword = true
break
}
}

Expand Down

0 comments on commit f0b6b5d

Please sign in to comment.