Skip to content

Commit

Permalink
clean code (#8671)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijun-H authored Dec 29, 2023
1 parent 673f0e1 commit d515c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/proto/src/logical_plan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1765,8 +1765,8 @@ pub(crate) fn writer_properties_to_proto(
pub(crate) fn writer_properties_from_proto(
props: &protobuf::WriterProperties,
) -> Result<WriterProperties, DataFusionError> {
let writer_version = WriterVersion::from_str(&props.writer_version)
.map_err(|e| proto_error(e.to_string()))?;
let writer_version =
WriterVersion::from_str(&props.writer_version).map_err(proto_error)?;
Ok(WriterProperties::builder()
.set_created_by(props.created_by.clone())
.set_writer_version(writer_version)
Expand Down

0 comments on commit d515c68

Please sign in to comment.