Skip to content

Commit ed5b0c2

Browse files
fmt
1 parent 9fae5c1 commit ed5b0c2

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

rust/crates/sift_cli/src/cmd/import/tdms/detect_tdms_config.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,14 @@ fn detect_config(path: &Path, fallback_method: TdmsFallbackMethod) -> Result<Vec
213213
let time_channel_name = find_time_channel(&channels);
214214

215215
if let Some(time_name) = time_channel_name.as_ref() && let Some((_, time_channel)) = channels.iter().find(|(n, _)| n == time_name) {
216-
let time_dt = tdms_to_sift_data_type(time_channel.data_type)
217-
.unwrap_or(ChannelDataType::Int64);
218-
channels_vec.push(ChannelConfig {
219-
name: format!("{group}.{time_name}"),
220-
description: "[time]".into(),
221-
data_type: time_dt.into(),
222-
..Default::default()
223-
});
224-
}
216+
let time_dt = tdms_to_sift_data_type(time_channel.data_type)
217+
.unwrap_or(ChannelDataType::Int64);
218+
channels_vec.push(ChannelConfig {
219+
name: format!("{group}.{time_name}"),
220+
description: "[time]".into(),
221+
data_type: time_dt.into(),
222+
..Default::default()
223+
});
225224
}
226225

227226
for (channel_name, channel) in &channels {

0 commit comments

Comments
 (0)