提交 72ae6f59 编写于 作者: W wxyu

clang-format


Former-commit-id: 0ef52c892fdff56800f509cecf010f95c6e7e421
上级 edcb0bc5
...@@ -173,7 +173,7 @@ ResourceMgr::GetNumGpuResource() const { ...@@ -173,7 +173,7 @@ ResourceMgr::GetNumGpuResource() const {
json json
ResourceMgr::Dump() const { ResourceMgr::Dump() const {
json resources{}; json resources{};
for (auto &res : resources_) { for (auto& res : resources_) {
resources.push_back(res->Dump()); resources.push_back(res->Dump());
} }
json ret{ json ret{
......
...@@ -41,7 +41,7 @@ Node::GetNeighbours() { ...@@ -41,7 +41,7 @@ Node::GetNeighbours() {
json json
Node::Dump() const { Node::Dump() const {
json neighbours; json neighbours;
for (auto & neighbour : neighbours_) { for (auto& neighbour : neighbours_) {
json n; json n;
n["id"] = neighbour.first; n["id"] = neighbour.first;
n["connection"] = neighbour.second.connection.Dump(); n["connection"] = neighbour.second.connection.Dump();
......
...@@ -44,9 +44,7 @@ ToString(ResourceType type) { ...@@ -44,9 +44,7 @@ ToString(ResourceType type) {
case ResourceType::GPU: { case ResourceType::GPU: {
return "GPU"; return "GPU";
} }
default: { default: { return "UNKNOWN"; }
return "UNKNOWN";
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册