Reduce nesting and remove dead code

This commit is contained in:
John Freeman
2020-12-14 19:49:31 -06:00
committed by manojsdoshi
parent 7e97bfce10
commit 0a1fb4e6ca
8 changed files with 163 additions and 187 deletions

View File

@@ -415,7 +415,7 @@ public:
}
{
// Examine current PerfLog::counterJson() values.
Json::Value const countersJson{perfLog->countersJson()["rpc"]};
Json::Value const countersJson{perfLog->countersJson()[jss::rpc]};
BEAST_EXPECT(countersJson.size() == labels.size() + 1);
for (auto& label : labels)
{