Skip to content

Commit

Permalink
Update tap_core/src/adapters/mock/executor_mock.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alexis Asseman <[email protected]>
  • Loading branch information
gusinacio and aasseman authored Dec 30, 2023
1 parent 4692d8b commit 8697973
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tap_core/src/adapters/mock/executor_mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,8 @@ impl ReceiptRead for ExecutorMock {

if limit.is_some_and(|limit| receipts_in_range.len() > limit as usize) {
safe_truncate_receipts(&mut receipts_in_range, limit.unwrap());

Ok(receipts_in_range.into_iter().map(|r| r.into()).collect())
} else {
Ok(receipts_in_range.into_iter().map(|r| r.into()).collect())
}
}
Ok(receipts_in_range.into_iter().map(|r| r.into()).collect())
}
}

Expand Down

0 comments on commit 8697973

Please sign in to comment.