From: Jess Bees Date: Mon, 3 Nov 2025 19:24:58 +0000 (-0500) Subject: Reformat some lines flagged by linter X-Git-Tag: rec-5.4.0-alpha1~40^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df76a7ccb4bb6b6108b3c81408d76939c6a3ad3d;p=thirdparty%2Fpdns.git Reformat some lines flagged by linter Signed-off-by: Jess Bees --- diff --git a/pdns/recursordist/rec_channel_rec.cc b/pdns/recursordist/rec_channel_rec.cc index 70474fb5f9..c8ad64b302 100644 --- a/pdns/recursordist/rec_channel_rec.cc +++ b/pdns/recursordist/rec_channel_rec.cc @@ -203,7 +203,7 @@ std::atomic* initDynMetric(const std::string& str, const std::str if (!prometheusTypeName.empty()) { static const std::map namesToTypes = { {"counter", PrometheusMetricType::counter}, - {"gauge", PrometheusMetricType::gauge}, + {"gauge", PrometheusMetricType::gauge}, }; auto realtype = namesToTypes.find(prometheusTypeName); if (realtype != namesToTypes.end()) { diff --git a/pdns/recursordist/ws-recursor.cc b/pdns/recursordist/ws-recursor.cc index 43aa30dbaf..722ef6987a 100644 --- a/pdns/recursordist/ws-recursor.cc +++ b/pdns/recursordist/ws-recursor.cc @@ -576,7 +576,8 @@ static void prometheusMetrics(HttpRequest* /* req */, HttpResponse* resp) // name is XXX_count, strip the _count part helpname = helpname.substr(0, helpname.length() - 6); } - } else { + } + else { if (tup.second.d_prometheusType) { prometheusTypeName = MetricDefinitionStorage::getPrometheusStringMetricType( *tup.second.d_prometheusType);