-
Notifications
You must be signed in to change notification settings - Fork 4.6k
refactor(connector): [Worldpay] Remove Default Case Handling #2488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| }) | ||
| } | ||
| _ => Err(errors::ConnectorError::FailedToObtainAuthType)?, | ||
| types::ConnectorAuthType::CurrencyAuthKey { auth_key_map: _ } => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sudharsangs,
Can you please revert back this change as wildcard match arms (_) is not in scope for AuthType?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made the change @prasunna09
SanchithHegde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Thanks for the PR, @sudharsangs!
|
@sudharsangs Can you please revert back the Cargo.lock file? |
|
Hey @sudharsangs , |
63cfce8
I did a |
|
Hey @sudharsangs , |
Type of Change
Description
Instead of relying on a default match case
_I have added conditions for each type in match statements.Changes are made at https://github.com/juspay/hyperswitch/blob/main/crates/router/src/connector/worldpay/transformers.rs
Motivation and Context
Closes #2290
Checklist
cargo +nightly fmt --allcargo clippy