Skip to content

Commit

Permalink
fix(mina-consensus.ts): remove early loop termination in getAllPredic…
Browse files Browse the repository at this point in the history
…ate (#96)
  • Loading branch information
MartinMinkov authored Nov 21, 2023
1 parent 0283b8f commit 5be4393
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/consensus/mina-consensus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ function getAllPredicate<T>(array: T[], predicate: (arg: T) => boolean) {
for (let i = 0; i < array.length; i++) {
if (predicate(array[i])) {
data.push(array[i]);
} else {
break;
}
}
return data;
Expand Down

0 comments on commit 5be4393

Please sign in to comment.