From 5273d709bb7cc5e362ac8ce5a656b6d710d11388 Mon Sep 17 00:00:00 2001 From: Valerian Saliou Date: Tue, 5 Jul 2022 12:38:52 +0200 Subject: [PATCH] Code style improvement --- src/aggregator/manager.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/aggregator/manager.rs b/src/aggregator/manager.rs index 42abe82..25f3806 100644 --- a/src/aggregator/manager.rs +++ b/src/aggregator/manager.rs @@ -261,11 +261,12 @@ fn scan_and_bump_states() -> Option { ); // Check if reminders should be ignored for now? - let mut should_ignore_reminders = false; - - if let Some(reminder_ignore_until) = reminder_ignore_until { - should_ignore_reminders = SystemTime::now() < reminder_ignore_until; - } + let should_ignore_reminders = + if let Some(reminder_ignore_until) = reminder_ignore_until { + SystemTime::now() < reminder_ignore_until + } else { + false + }; debug!( "checking if should re-notify about unchanged status ({}s / {}↑ / {})",