Skip to content

Commit d72a935

Browse files
committed
chore: simplify if
1 parent 2d0ed7c commit d72a935

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • evm/src/executor/inspector/cheatcodes

evm/src/executor/inspector/cheatcodes/expect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub fn handle_expect_emit(state: &mut Cheatcodes, log: RawLog, address: &Address
133133
// First, we can return early if all events have been matched.
134134
// This allows a contract to arbitrarily emit more events than expected (additive behavior),
135135
// as long as all the previous events were matched in the order they were expected to be.
136-
if !state.expected_emits.iter().any(|expected| !expected.found) {
136+
if state.expected_emits.iter().all(|expected| expected.found) {
137137
return
138138
}
139139

0 commit comments

Comments
 (0)