Skip to content

Commit

Permalink
remove unused one
Browse files Browse the repository at this point in the history
  • Loading branch information
yuunlimm committed Jun 24, 2024
1 parent a6d8c37 commit c115863
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions rust/processor/src/db/common/models/default_models/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,28 +200,18 @@ impl Transaction {
.as_ref()
.expect("Getting user request failed.");

let mut payload_cleaned = None;
let (payload, payload_type) = match request.payload.as_ref() {
let (payload_cleaned, payload_type) = match request.payload.as_ref() {
Some(payload) => {
payload_cleaned = get_clean_payload(&payload, version);
let payload_cleaned = get_clean_payload(&payload, version);
(payload_cleaned, Some(get_payload_type(&payload)))
},
None => (None, None),
};

let (payload_cleaned, payload_type) = request
.payload
.as_ref()
.map(|payload| {
let cleaned = get_clean_payload(payload, version);
(Some(cleaned), Some(get_payload_type(payload)))
})
.unwrap_or((None, None));

(
Self::from_transaction_info_with_data(
transaction_info,
payload,
payload_cleaned,
payload_type,
version,
transaction_type,
Expand Down

0 comments on commit c115863

Please sign in to comment.