Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SaumyaKhati committed Jul 27, 2023
1 parent e267798 commit 81da743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions production/src/synch/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ use stores::prelude::PgPool;
pub async fn synchronize_data(config: &Configuration, pool: &PgPool) -> Result<(), String> {
let code: Result<String, String> = term::get_term_code_for_current_term(config).await;

// If code is incorrect, return early. GOOD.
// If code is incorrect, return early.
if let Err(err) = code {
return Err(err);
}
let code: String = code.unwrap();
info!("The term code for current term is: {:?}", code);

// Get courses from the OpenData API. GOOD.
// Get courses from the OpenData API.
let get_courses_resp: Result<Vec<models::Course>, String> =
term::get_active_courses_for_term(&code, config).await;
if let Err(err) = get_courses_resp {
Expand Down

0 comments on commit 81da743

Please sign in to comment.