Collapse nested if in scheduler (clippy)
Some checks failed
CI / backend (push) Has been cancelled
CI / frontend (push) Has been cancelled
CI / ui (push) Has been cancelled

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Dennis Nemec
2026-09-02 22:17:07 +02:00
parent fa9ac9a6bc
commit 4de6d0a872

View File

@ -64,12 +64,12 @@ impl Scheduler {
.ok()
.flatten()
.map(|r| r.started_at);
if is_due(&cron, last, now, self.tick.as_secs() as i64 * 2) {
if self.runner.start(kind, None, "scheduler").await.is_ok() {
if is_due(&cron, last, now, self.tick.as_secs() as i64 * 2)
&& self.runner.start(kind, None, "scheduler").await.is_ok()
{
started.push(kind);
}
}
}
started
}