Skip to content

Commit

Permalink
chore: replace is_some check to match
Browse files Browse the repository at this point in the history
  • Loading branch information
paomian committed Aug 13, 2024
1 parent 37072b0 commit c34c92f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pipeline/src/etl/transform/transformer/greptime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ impl GreptimeTransformer {
Some(val) => coerce_value(val, transform)?,
None => {
let default = transform.get_default();
if default.is_some() {
coerce_value(default.unwrap(), transform)?
} else {
None
match default {
Some(default) => coerce_value(default, transform)?,
None => None,
}
}
};
Expand Down

0 comments on commit c34c92f

Please sign in to comment.