mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 15:14:38 +00:00
add a break statement when iterating through keywords (#1184)
This commit is contained in:
parent
ef9488c77d
commit
f0b6b5d0d9
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue