fix: Remove redundant empty checks

pull/24376/head
Carol (Nichols || Goulding) 2020-03-26 11:15:10 -04:00
parent 1b4b3fe7ad
commit 97aedbd167
1 changed files with 0 additions and 6 deletions

View File

@ -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))
}
}