Skip to content

Commit

Permalink
fix: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneWallet committed Aug 23, 2024
1 parent 9ceae9d commit 4900a4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account/src/account/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async fn fetch_account_info_for_address<Client, Caching>(gateway_client: &Client
return Err(AccountError::CannotParseAccountDeveloperReward { address: bech32_address, reward: raw_info.developer_reward})
};

let owner_address = if raw_info.owner_address.len() == 0 {
let owner_address = if raw_info.owner_address.is_empty() {
None
} else {
let Ok(address) = Address::from_bech32_string(&raw_info.owner_address) else {
Expand All @@ -138,7 +138,7 @@ async fn fetch_account_info_for_address<Client, Caching>(gateway_client: &Client
None
};

let code = if raw_info.code.len() == 0 {
let code = if raw_info.code.is_empty() {
None
} else {
Some(raw_info.code)
Expand Down

0 comments on commit 4900a4c

Please sign in to comment.