Skip to content

Commit

Permalink
if let
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaBatty committed Mar 20, 2023
1 parent 161a5e0 commit 54f7c81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/savings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ impl Savings {
let mut parameters = BTreeMap::new();
parameters.insert("asset".into(), asset.into());
parameters.insert("address".into(), address.into());
if address_tag.is_some() {
parameters.insert("addressTag".into(), address_tag.unwrap().to_string());
if let Some(address_tag) = address_tag {
parameters.insert("addressTag".into(), address_tag.to_string());
}
parameters.insert("amount".into(), amount.to_string());
let request = build_signed_request(parameters, self.recv_window)?;
Expand Down

0 comments on commit 54f7c81

Please sign in to comment.