Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
xzhseh committed Jan 31, 2024
1 parent 61d3ed0 commit 0fcddb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expr/impl/src/scalar/case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl ConstantLookupExpression {
let Some(ref fallback) = self.fallback else {
return Ok(None);
};
let Ok(res) = fallback.eval_row(&input).await else {
let Ok(res) = fallback.eval_row(input).await else {
bail!("failed to evaluate the input for fallback arm");
};
Ok(res)
Expand All @@ -153,7 +153,7 @@ impl ConstantLookupExpression {
}

if let Some(expr) = self.arms.get(datum.as_ref().unwrap()) {
let Ok(res) = expr.eval_row(&input).await else {
let Ok(res) = expr.eval_row(input).await else {
bail!("failed to evaluate the input for normal arm");
};
Ok(res)
Expand Down

0 comments on commit 0fcddb7

Please sign in to comment.