Skip to content

Commit

Permalink
Remove useless condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Aug 13, 2020
1 parent e2c6e7a commit 0d540b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/Consensus/ConsensusContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public int CountFailed
{
get
{
if (LastSeenMessage == null || Block.Index <= 1) return 0;
if (LastSeenMessage == null) return 0;
return Validators.Count(p => !LastSeenMessage.TryGetValue(p, out var value) || value < (Block.Index - 1));
}
}
Expand Down

0 comments on commit 0d540b3

Please sign in to comment.