diff --git a/x-pack/plugins/security_solution/server/lib/detection_engine/signals/search_after_bulk_create.ts b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/search_after_bulk_create.ts index 8e5b7e81c9991..cff5b5d2b6be8 100644 --- a/x-pack/plugins/security_solution/server/lib/detection_engine/signals/search_after_bulk_create.ts +++ b/x-pack/plugins/security_solution/server/lib/detection_engine/signals/search_after_bulk_create.ts @@ -186,10 +186,7 @@ export const searchAfterAndBulkCreate = async ({ } // make sure we are not going to create more signals than maxSignals allows - if ( - signalsCreatedCount != null && - signalsCreatedCount + filteredEvents.hits.hits.length > tuple.maxSignals - ) { + if (signalsCreatedCount + filteredEvents.hits.hits.length > tuple.maxSignals) { filteredEvents.hits.hits = filteredEvents.hits.hits.slice( 0, tuple.maxSignals - signalsCreatedCount