Collapse nested if in scheduler (clippy)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@ -64,10 +64,10 @@ impl Scheduler {
|
|||||||
.ok()
|
.ok()
|
||||||
.flatten()
|
.flatten()
|
||||||
.map(|r| r.started_at);
|
.map(|r| r.started_at);
|
||||||
if is_due(&cron, last, now, self.tick.as_secs() as i64 * 2) {
|
if is_due(&cron, last, now, self.tick.as_secs() as i64 * 2)
|
||||||
if self.runner.start(kind, None, "scheduler").await.is_ok() {
|
&& self.runner.start(kind, None, "scheduler").await.is_ok()
|
||||||
started.push(kind);
|
{
|
||||||
}
|
started.push(kind);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
started
|
started
|
||||||
|
|||||||
Reference in New Issue
Block a user