Skip to content

Commit

Permalink
linter fix + improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Dec 28, 2023
1 parent 5edd9df commit 70518d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/endpoints/pool/pool.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ export class PoolService {
}

private applyFilters(pool: TransactionInPool[], filters: PoolFilter): TransactionInPool[] {
let results: TransactionInPool[] = [];
if (!filters.receiver && !filters.sender && !filters.type) {
return pool

Check failure on line 48 in src/endpoints/pool/pool.service.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Missing semicolon
}

const results: TransactionInPool[] = [];

for (const transaction of pool) {
if (filters.sender && transaction.sender !== filters.sender) {
Expand Down

0 comments on commit 70518d0

Please sign in to comment.