Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
Fix limit option
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeguiee committed Aug 16, 2019
1 parent 2909bf2 commit 3a1f4f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Libplanet.Explorer/GraphTypes/BlocksQuery.cs
Expand Up @@ -103,6 +103,7 @@ public BlocksQuery(BlockChain<T> chain)
{
if (!excludeEmptyTxs || block.Transactions.Any())
{
limit--;
yield return block;
}

Expand All @@ -112,11 +113,6 @@ public BlocksQuery(BlockChain<T> chain)
{
break;
}

if (!(limit is null))
{
limit--;
}
}
}

Expand Down

0 comments on commit 3a1f4f5

Please sign in to comment.