Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-r-ph committed Feb 26, 2025
1 parent 0064921 commit e62c407
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions rust/property-defs-rs/src/api/v1/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@ async fn project_property_definitions_handler(

let total_count: i64 = match qmgr.pool.fetch_one(count_query).await {
Ok(row) => row.get(0),
Err(e) => {
return Err(ApiError::QueryError(format!(
"in count query: {}",
e.to_string()
)))
}
Err(e) => return Err(ApiError::QueryError(format!("in count query: {}", e))),
};

let mut prop_defs = vec![];
Expand All @@ -82,12 +77,7 @@ async fn project_property_definitions_handler(
prop_defs.push(pd);
}
}
Err(e) => {
return Err(ApiError::QueryError(format!(
"in prop defs query: {}",
e.to_string()
)))
}
Err(e) => return Err(ApiError::QueryError(format!("in prop defs query: {}", e))),
}

// TODO: since this is an internal API, and using the incoming URI
Expand Down

0 comments on commit e62c407

Please sign in to comment.