Skip to content

Commit

Permalink
remove error propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
Chethan-rao committed Dec 4, 2023
1 parent 56d76fa commit f3e6e50
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/pm_auth/src/connector/plaid/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@ impl TryFrom<&types::LinkTokenRouterData> for PlaidLinkTokenRequest {
field_name: "country_codes",
},
)?,
language: item.request.language.clone().ok_or(
errors::ConnectorError::MissingRequiredField {
field_name: "language",
},
)?,
language: item.request.language.clone().unwrap_or("en".to_string()),
products: vec!["auth".to_string()],
user: User {
client_user_id: item.request.user_info.clone().ok_or(
errors::ConnectorError::MissingRequiredField {
field_name: "user.client_user_id",
field_name: "country_codes",
},
)?,
},
Expand Down

0 comments on commit f3e6e50

Please sign in to comment.