Skip to content

Commit

Permalink
chore:cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagaprasadvr committed Oct 30, 2024
1 parent ed9356a commit ccacf6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/metadata_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ async fn is_asset_data_fetch_req(

let conn = SqlxPostgresConnector::from_sqlx_postgres_pool(pool);

return asset_data::Entity::find_by_id(asset_data_id.clone())
asset_data::Entity::find_by_id(asset_data_id.clone())
.one(&conn)
.await
.unwrap_or(None)
.is_some_and(|model| *incoming_slot > model.slot_updated);
.is_some_and(|model| *incoming_slot > model.slot_updated)
}

impl MetadataJsonDownloadWorkerArgs {
Expand Down Expand Up @@ -294,7 +294,7 @@ pub async fn perform_metadata_json_task(

active_model.update(&conn).await?;

return Err(MetadataJsonTaskError::Fetch(e.error));
Err(MetadataJsonTaskError::Fetch(e.error))
}
}
}
Expand Down

0 comments on commit ccacf6f

Please sign in to comment.