summaryrefslogtreecommitdiffstats
path: root/src/remake/vote.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/remake/vote.rs')
-rw-r--r--src/remake/vote.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/remake/vote.rs b/src/remake/vote.rs
index 9bc8890..d5b167f 100644
--- a/src/remake/vote.rs
+++ b/src/remake/vote.rs
@@ -272,10 +272,10 @@ pub(super) async fn cast<H: Host>(host: &H) {
return;
};
// Only with the content in hand: a committed remake must have it on a majority.
- if let Some(reference) = &content {
- if content::available_or_fetch(host, reference).is_none() {
- return;
- }
+ if let Some(reference) = &content
+ && content::available_or_fetch(host, reference).is_none()
+ {
+ return;
}
// Spread over half a keepalive interval, so later voters see the earlier votes
// (the worker checks every second).