From 5be43930ec502319d6cb39ed0fcfcd160e3d416c Mon Sep 17 00:00:00 2001 From: Martin Minkov Date: Tue, 21 Nov 2023 09:58:30 -0800 Subject: [PATCH] fix(mina-consensus.ts): remove early loop termination in getAllPredicate (#96) --- src/consensus/mina-consensus.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/consensus/mina-consensus.ts b/src/consensus/mina-consensus.ts index 6a2f389..485234a 100644 --- a/src/consensus/mina-consensus.ts +++ b/src/consensus/mina-consensus.ts @@ -8,8 +8,6 @@ function getAllPredicate(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;