Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(cron): replace let-chain with nested if in delivery test

Steven Enamakel42ff93f4edbf
diff --git a/crates/openhuman-core/src/cron/ops_delivery_tests.rs b/crates/openhuman-core/src/cron/ops_delivery_tests.rs
index 4d8a51a9ca..923f37cf74 100644
--- a/crates/openhuman-core/src/cron/ops_delivery_tests.rs
+++ b/crates/openhuman-core/src/cron/ops_delivery_tests.rs
@@ -170,9 +170,10 @@ async fn cancelled_waiting_caller_keeps_manual_run_callback_served_until_complet
if let DomainEvent::CronJobCompleted {
job_id, success, ..
} = event
- && job_id == &self.job_id
{
- let _ = self.tx.send(*success);
+ if job_id == &self.job_id {
+ let _ = self.tx.send(*success);
+ }
}
}
}