Skip to content

Commit

Permalink
Code style improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Jul 5, 2022
1 parent 00a3da8 commit 5273d70
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/aggregator/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,12 @@ fn scan_and_bump_states() -> Option<BumpedStates> {
);

// 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 / {}↑ / {})",
Expand Down

0 comments on commit 5273d70

Please sign in to comment.