Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dxrcy committed Apr 3, 2024
1 parent 9535c43 commit dfc6f4e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,7 @@ pub async fn download_image<'a>(
let filepath = folder.join(filename);

for attempt_no in 1..=attempt_count {
let result = fetch_image(
client,
&date_cached,
job_id,
total_count,
api,
cache_file,
)
.await;
let result = fetch_image(client, &date_cached, job_id, total_count, api, cache_file).await;
match result {
Ok(image) => {
if let Err(error) = image.save(filepath) {
Expand Down

0 comments on commit dfc6f4e

Please sign in to comment.