Update src/servers/src/http.rs

Co-authored-by: LFC <bayinamine@gmail.com>
This commit is contained in:
Ning Sun
2022-10-28 14:50:06 +08:00
parent df5df3ed1d
commit eb5f468d09

View File

@@ -72,11 +72,7 @@ impl HttpRecordsOutput {
}
pub fn num_cols(&self) -> usize {
if let Some(schema) = &self.schema {
schema.column_schemas.len()
} else {
0
}
self.schema.map(|x| x.column_schemas.len()).unwrap_or(0)
}
}