fix formatting

This commit is contained in:
Kajari Ghosh 2018-12-11 11:44:29 -05:00
parent 060647b9b7
commit 9e68de1c2e

View File

@ -182,12 +182,13 @@ class TableAPI final : public BaseAPI
MakeEstimatesTable(const std::vector<TableCellRef> &fallback_speed_cells) const MakeEstimatesTable(const std::vector<TableCellRef> &fallback_speed_cells) const
{ {
util::json::Array json_table; util::json::Array json_table;
std::for_each(fallback_speed_cells.begin(), fallback_speed_cells.end(), [&](const auto &cell) { std::for_each(
util::json::Array row; fallback_speed_cells.begin(), fallback_speed_cells.end(), [&](const auto &cell) {
row.values.push_back(util::json::Number(cell.row)); util::json::Array row;
row.values.push_back(util::json::Number(cell.column)); row.values.push_back(util::json::Number(cell.row));
json_table.values.push_back(std::move(row)); row.values.push_back(util::json::Number(cell.column));
}); json_table.values.push_back(std::move(row));
});
return json_table; return json_table;
} }