aboutsummaryrefslogtreecommitdiff
path: root/src/app/runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/runtime.rs')
-rw-r--r--src/app/runtime.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/app/runtime.rs b/src/app/runtime.rs
index a4e93d3b..3c67c306 100644
--- a/src/app/runtime.rs
+++ b/src/app/runtime.rs
@@ -229,10 +229,11 @@ impl App {
}
pub(crate) fn start_git_status_refresh_if_due(&mut self, now: Instant) {
- if !self
- .git_refresh_deadline()
- .is_some_and(|deadline| now >= deadline)
- {
+ let Some(deadline) = self.git_refresh_deadline() else {
+ return;
+ };
+
+ if now < deadline {
return;
}