]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Reformat some lines flagged by linter
authorJess Bees <jesse@toomanybees.com>
Mon, 3 Nov 2025 19:24:58 +0000 (14:24 -0500)
committerJess Bees <jesse@toomanybees.com>
Mon, 17 Nov 2025 19:35:08 +0000 (14:35 -0500)
Signed-off-by: Jess Bees <jesse@toomanybees.com>
pdns/recursordist/rec_channel_rec.cc
pdns/recursordist/ws-recursor.cc

index 70474fb5f9627d05c541de8a2aa93f6bd51c3afe..c8ad64b3029fada72e1a9eb8c63b6e2884a740ac 100644 (file)
@@ -203,7 +203,7 @@ std::atomic<unsigned long>* initDynMetric(const std::string& str, const std::str
   if (!prometheusTypeName.empty()) {
     static const std::map<std::string, PrometheusMetricType> namesToTypes = {
       {"counter", PrometheusMetricType::counter},
-      {"gauge",   PrometheusMetricType::gauge},
+      {"gauge", PrometheusMetricType::gauge},
     };
     auto realtype = namesToTypes.find(prometheusTypeName);
     if (realtype != namesToTypes.end()) {
index 43aa30dbafc45711c2a66e7998c6ef0371888ef2..722ef6987af6545e60dbd9f5008d933b5d1bc6b5 100644 (file)
@@ -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);