add a break statement when iterating through keywords (#1184)

This commit is contained in:
Zachary Rice 2023-03-15 16:51:03 -05:00 committed by GitHub
parent ef9488c77d
commit f0b6b5d0d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}