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()
|
||||
.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() {
|
||||
started.push(kind);
|
||||
}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user