Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
taitruong committed Sep 27, 2024
1 parent c769c0a commit e943d01
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/ics721/src/ibc_packet_receive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,8 @@ pub(crate) fn receive_ibc_packet(
load_nft_contract_for_class_id(deps.storage, local_class_id.to_string())
.map_err(|_| ContractError::NoNftContractForClassId(local_class_id.to_string()))
} else {
let nft_contract =
match query_nft_contract_for_class_id(deps.storage, local_class_id.clone()) {
Ok(nft_contract) => nft_contract,
Err(_) => None, // not found, occurs on initial transfer when we don't have the contract address
};
let nft_contract = query_nft_contract_for_class_id(deps.storage, local_class_id.clone())
.unwrap_or_default();
match nft_contract {
Some(nft_contract) => Ok(nft_contract),
None => {
Expand Down

0 comments on commit e943d01

Please sign in to comment.