Skip to content

Commit

Permalink
Added process.exit to script, reverted logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxcrawford committed Aug 10, 2020
1 parent dfd240f commit 0f28c06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/collect-unresolved-breaches-addresses.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function getArgsValue(argument) {
const cohort = [];

for (const record of results) {
if (cohort.length >= cohortSize) {
if (cohort.length > cohortSize) {
// Cohort size reached
break;
}
Expand All @@ -73,4 +73,7 @@ function getArgsValue(argument) {

console.log("Script completed! See final output:");
console.log(cohort.toString());

process.exit();

})();

0 comments on commit 0f28c06

Please sign in to comment.