summaryrefslogtreecommitdiffstats
path: root/src/remake/vote.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-26 21:56:20 +0100
committertv <tv@krebsco.de>2026-10-26 21:56:20 +0100
commit08f5df1f0a2e22876a5b49a4f9e2e05a61df882a (patch)
tree113050df0bef5e8f3e9d188c69fc2a0c76d2eb17 /src/remake/vote.rs
parentecdb3ee944f5c171faac3a71117e2ff27e064295 (diff)
make clippy happy again
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).