Update src/servers/src/http.rs

Co-authored-by: LFC <bayinamine@gmail.com>
This commit is contained in:
Ning Sun
2022-10-28 19:41:49 +08:00
co-authored by LFC
parent df5df3ed1d
commit eb5f468d09
+1 -5
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)
}
}