From a6df4cb4ae70f459290810aa257c40826e500b07 Mon Sep 17 00:00:00 2001 From: himself65 Date: Fri, 3 Feb 2023 16:59:29 -0600 Subject: [PATCH] fixup!: lint format Signed-off-by: himself65 --- src/node_process_object.cc | 3 +-- src/node_report.cc | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/node_process_object.cc b/src/node_process_object.cc index 57908e2f764004..66a4dc24010e6e 100644 --- a/src/node_process_object.cc +++ b/src/node_process_object.cc @@ -113,8 +113,7 @@ MaybeLocal CreateProcessObject(Realm* realm) { #define V(key) \ do { \ - versions_vec.push_back( \ - std::make_pair(#key, per_process::metadata.versions.key)); \ + versions_vec.emplace_back(#key, per_process::metadata.versions.key); \ } while (0); NODE_VERSIONS_KEYS(V) #undef V diff --git a/src/node_report.cc b/src/node_report.cc index 7af20dd9d5efbb..9c616e867a8776 100644 --- a/src/node_report.cc +++ b/src/node_report.cc @@ -797,7 +797,7 @@ static void PrintComponentVersions(JSONWriter* writer) { #define V(key) \ do { \ - versions_vec.push_back( \ + versions_vec.emplace_back( \ std::make_pair(#key, per_process::metadata.versions.key)); \ } while (0); NODE_VERSIONS_KEYS(V)