Skip to content

Commit 6d01e88

Browse files
committed
fix clippy
1 parent d249ce3 commit 6d01e88

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -658,10 +658,9 @@ impl ConstEvaluator {
658658
// when evaluating 0-row struct literals
659659
if let Expr::Literal(ScalarValue::Struct(struct_array), _) =
660660
expr.as_ref()
661+
&& struct_array.len() == 0
661662
{
662-
if struct_array.len() == 0 {
663-
return false;
664-
}
663+
return false;
665664
}
666665
}
667666
true

0 commit comments

Comments
 (0)