fix: collapse nested if per clippy

This commit is contained in:
2026-06-11 13:48:08 +02:00
parent 57c720b22f
commit 262ba5ca39

View File

@@ -41,13 +41,12 @@ impl EventHandler for PersonEnrichmentHandler {
_ => return Ok(()), _ => return Ok(()),
}; };
if let Some(person) = self.person_query.get_by_id(&person_id).await? { if let Some(person) = self.person_query.get_by_id(&person_id).await?
if let Some(at) = person.enriched_at() { && let Some(at) = person.enriched_at()
if (Utc::now() - at).num_days() < STALENESS_DAYS { && (Utc::now() - at).num_days() < STALENESS_DAYS
tracing::debug!(person_id = %person_id.value(), "person enrichment still fresh"); {
return Ok(()); tracing::debug!(person_id = %person_id.value(), "person enrichment still fresh");
} return Ok(());
}
} }
tracing::info!(person_id = %person_id.value(), "enriching person from TMDb"); tracing::info!(person_id = %person_id.value(), "enriching person from TMDb");