Skip to content

Commit

Permalink
refactor: update if else stmt in executor_mock
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo Inacio <[email protected]>
  • Loading branch information
gusinacio committed Dec 30, 2023
1 parent 4692d8b commit 9b34113
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 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 9b34113

Please sign in to comment.