fix: Remove redundant empty checks
parent
1b4b3fe7ad
commit
97aedbd167
|
@ -294,15 +294,9 @@ impl ReadBatch {
|
|||
fn start_stop_times(&self) -> Option<(i64, i64)> {
|
||||
match &self.values {
|
||||
ReadValues::I64(vals) => {
|
||||
if vals.is_empty() {
|
||||
return None;
|
||||
}
|
||||
Some((vals.first()?.time, vals.last()?.time))
|
||||
}
|
||||
ReadValues::F64(vals) => {
|
||||
if vals.is_empty() {
|
||||
return None;
|
||||
}
|
||||
Some((vals.first()?.time, vals.last()?.time))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue