Skip to content

Commit

Permalink
Remove early return if uri is empty (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
danenbm authored Oct 16, 2023
1 parent 2029740 commit a973f19
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nft_ingester/src/program_transformers/bubblegum/mint_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ where
true => ChainMutability::Mutable,
false => ChainMutability::Immutable,
};
if uri.is_empty() {
return Err(IngesterError::DeserializationError(
"URI is empty".to_string(),
));
}

let data = asset_data::ActiveModel {
id: Set(id_bytes.to_vec()),
chain_data_mutability: Set(chain_mutability),
Expand Down

0 comments on commit a973f19

Please sign in to comment.