Skip to content

Commit

Permalink
chore: correct the return value for the if action
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Oct 28, 2024
1 parent 5bb2b5a commit 3c9ee0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/pact_matching/src/engine/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl PlanMatchingContext {
if first.is_truthy() {
Ok(second)
} else {
Ok(NodeResult::VALUE(NodeValue::BOOL(false)))
Ok(first)
}
}
_ => Err(anyhow!("'{}' is not a valid action", action))
Expand Down

0 comments on commit 3c9ee0c

Please sign in to comment.