Skip to content

Commit

Permalink
refactor(router): fixed clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sahkal committed Nov 8, 2023
1 parent 47e7dba commit fda836e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/router/src/core/payment_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,9 @@ pub async fn intiate_payment_link_flow(
.unwrap_or_default(),
max_items_visible_after_collapse: 3,
sdk_theme: payment_link_config.clone().and_then(|pl_config| {
pl_config.color_scheme.map(|color| {
color
.sdk_theme
.unwrap_or(default_sdk_theme.clone().to_string())
})
pl_config
.color_scheme
.map(|color| color.sdk_theme.unwrap_or(default_sdk_theme.to_string()))
}),
};

Expand Down

0 comments on commit fda836e

Please sign in to comment.