Skip to content

Commit d0bf3ba

Browse files
committed
clippy
Signed-off-by: Devan <[email protected]>
1 parent f16de44 commit d0bf3ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

datafusion/functions/src/string/concat.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ impl ScalarUDFImpl for ConcatFunc {
7272
arg_types.iter().for_each(|data_type| {
7373
if data_type == &Utf8View {
7474
dt = data_type;
75-
} else if data_type == &LargeUtf8 && dt != &Utf8View {
75+
}
76+
if data_type == &LargeUtf8 && dt != &Utf8View {
7677
dt = data_type;
7778
}
7879
});
@@ -87,7 +88,8 @@ impl ScalarUDFImpl for ConcatFunc {
8788
args.iter().for_each(|col| {
8889
if col.data_type() == DataType::Utf8View {
8990
return_datatype = col.data_type();
90-
} else if col.data_type() == DataType::LargeUtf8
91+
}
92+
if col.data_type() == DataType::LargeUtf8
9193
&& return_datatype != DataType::Utf8View
9294
{
9395
return_datatype = col.data_type();

0 commit comments

Comments
 (0)