Skip to content

Commit c4a2bcb

Browse files
committed
Refactors to check assert using macro parameter
1 parent 777636c commit c4a2bcb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lightning/src/ln/functional_test_utils.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -785,10 +785,7 @@ macro_rules! check_closed_event {
785785
_ => panic!("Unexpected event"),
786786
}
787787
}
788-
789-
if $is_check_discard_funding {
790-
assert!(issues_discard_funding);
791-
}
788+
assert_eq!($is_check_discard_funding, issues_discard_funding);
792789
}}
793790
}
794791

0 commit comments

Comments
 (0)