Skip to content

Commit

Permalink
code fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Feb 17, 2024
1 parent 7c0c0b6 commit 8c24c94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/expression/value_compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ impl DataValue {
let value = match (left_value, right_value) {
(Some(v1), Some(v2)) => Some(v1 && v2),
(Some(false), _) | (_, Some(false)) => Some(false),
_ => None
_ => None,
};

DataValue::Boolean(value)
Expand All @@ -481,7 +481,7 @@ impl DataValue {
let value = match (left_value, right_value) {
(Some(v1), Some(v2)) => Some(v1 || v2),
(Some(true), _) | (_, Some(true)) => Some(true),
_ => None
_ => None,
};

DataValue::Boolean(value)
Expand Down Expand Up @@ -1478,7 +1478,7 @@ mod test {
&DataValue::Boolean(Some(true)),
&BinaryOperator::Or
)?,
DataValue::Boolean(None)
DataValue::Boolean(Some(true))
);

Ok(())
Expand Down

0 comments on commit 8c24c94

Please sign in to comment.