Skip to content

Commit ef6803f

Browse files
committed
Use > 1 instead of >= 2
It is more typical to write `if k > 1` than `if k >= 2`.
1 parent d1fdbaa commit ef6803f

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
@@ -90,7 +90,7 @@ impl TimeLockInfo {
9090
|mut timelock_info, sub_timelock| {
9191
// If more than one branch may be taken, and some other branch has a requirement
9292
// that conflicts with this one, set `contains_combination`
93-
if k >= 2 {
93+
if k > 1 {
9494
timelock_info.contains_combination |= (timelock_info.csv_with_height
9595
&& sub_timelock.csv_with_time)
9696
|| (timelock_info.csv_with_time && sub_timelock.csv_with_height)

0 commit comments

Comments
 (0)