Skip to content

Commit 982fc4d

Browse files
committed
Use > 1 instead of >= 2
It is more natural to write `if k > 1` than `if k >= 2`.
1 parent d9d2e44 commit 982fc4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/miniscript/types/extra_props.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl TimeLockInfo {
8989
|mut timelock_info, sub_timelock| {
9090
// If more than one branch may be taken, and some other branch has a requirement
9191
// that conflicts with this one, set `contains_combination`
92-
if k >= 2 {
92+
if k > 1 {
9393
timelock_info.contains_combination |= (timelock_info.csv_with_height
9494
&& sub_timelock.csv_with_time)
9595
|| (timelock_info.csv_with_time && sub_timelock.csv_with_height)

0 commit comments

Comments
 (0)