Apply clippy suggestions

This commit is contained in:
Age Manning
2019-03-19 23:20:39 +11:00
parent e7f87112fb
commit 4b57d32b60
9 changed files with 30 additions and 43 deletions

View File

@@ -219,10 +219,8 @@ impl<T: ClientDB + Sized> ForkChoice for SlowLMDGhost<T> {
head_vote_count = vote_count;
}
// resolve ties - choose smaller hash
else if vote_count == head_vote_count {
if *child_hash < head_hash {
head_hash = *child_hash;
}
else if vote_count == head_vote_count && *child_hash < head_hash {
head_hash = *child_hash;
}
}
}