Skip to content

Commit

Permalink
cleaned up code by removing returns
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayahhhmed committed Nov 16, 2024
1 parent 4624258 commit a31698e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ async fn run_all_school_offered_courses_scraper_job(curr_year: i32) -> Option<Sc
let url_to_scrape = mutate_string_to_include_curr_year(&mut url.to_string(), curr_year.to_string());
let mut scraper = SchoolAreaScraper::new(url_to_scrape);
let _ = scraper.scrape().await;
return Some(scraper);
Some(scraper)
}
Err(e) => {
warn!("Timetable URL has NOT been parsed properly from env file and error report: {e}");
return None;
None
}
}
}
Expand Down

0 comments on commit a31698e

Please sign in to comment.