Skip to content

Commit

Permalink
refactor: replace newline with space
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakilmostak committed Nov 5, 2024
1 parent 5a432b3 commit d8d6459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/connector/cybersource/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4064,14 +4064,14 @@ pub trait RemoveNewLine {
impl RemoveNewLine for Option<Secret<String>> {
fn remove_new_line(&self) -> Self {
self.clone().map(|masked_value| {
let new_string = masked_value.expose().replace("\n", "");
let new_string = masked_value.expose().replace("\n", " ");
Secret::new(new_string)
})
}
}

impl RemoveNewLine for Option<String> {
fn remove_new_line(&self) -> Self {
self.clone().map(|value| value.replace("\n", ""))
self.clone().map(|value| value.replace("\n", " "))
}
}

0 comments on commit d8d6459

Please sign in to comment.