diff --git a/tools/include/edm4hep2json.hxx b/tools/include/edm4hep2json.hxx index a165a116e..50dbe0f3f 100644 --- a/tools/include/edm4hep2json.hxx +++ b/tools/include/edm4hep2json.hxx @@ -51,14 +51,11 @@ #include #include -template -void insertIntoJson(nlohmann::json& jsonDict, - const podio::CollectionBase* coll, - const std::string& name) { +template +void insertIntoJson(nlohmann::json& jsonDict, const podio::CollectionBase* coll, const std::string& name) { const auto* typedColl = static_cast(coll); // safe to cast, since we have queried the type before nlohmann::json jsonColl{ - {name, - {{"collection", *typedColl}, {"collID", coll->getID()}, {"collType", coll->getTypeName()}}}}; + {name, {{"collection", *typedColl}, {"collID", coll->getID()}, {"collType", coll->getTypeName()}}}}; jsonDict.insert(jsonColl.begin(), jsonColl.end()); }