Skip to content

Commit 6060752

Browse files
committed
refactor: remove unnecessary loop for empty transaction accounts in scrapeAndImportTransactions
1 parent e1ef795 commit 6060752

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/utils.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ export async function scrapeAndImportTransactions({companyId, bank}: ScrapeTrans
4141
.flatMap(account => account.txns)
4242
.value();
4343

44-
for (const account of result.accounts!) {
45-
if (account.txns.length <= 0) {
46-
continue;
47-
}
48-
}
49-
5044
const accountBalance = result.accounts![0].balance!;
5145
const payees: PayeeEntity[] = await actual.getPayees();
5246

0 commit comments

Comments
 (0)