Skip to content

Commit

Permalink
removes the err
Browse files Browse the repository at this point in the history
  • Loading branch information
gangov committed Nov 21, 2024
1 parent 6a7ac83 commit 3b78c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/deployer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl CollectionsDeployer {
.storage()
.persistent()
.get(&DataKey::AllCollections)
.ok_or(ContractError::NoCollectionsSaved)?;
.unwrap_or(Vec::new(env));

env.storage()
.persistent()
Expand All @@ -98,7 +98,7 @@ impl CollectionsDeployer {
.storage()
.persistent()
.get(&data_key)
.ok_or(ContractError::CreatorHasNoCollections)?;
.unwrap_or(Vec::new(env));

env.storage().persistent().has(&data_key).then(|| {
env.storage()
Expand Down

0 comments on commit 3b78c22

Please sign in to comment.