Skip to content

Commit

Permalink
signalsCreatedCount is initialized to a number and should never be null
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley14 committed Jul 14, 2020
1 parent 715837b commit 890ef86
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 890ef86

Please sign in to comment.