]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Tidy
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 23 Oct 2025 14:13:23 +0000 (16:13 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 10 Nov 2025 14:29:30 +0000 (15:29 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/pdns_recursor.cc

index fb78da262fd00cd9d4cc70206023637ad265e408..dc3bed6a89c29ea67e90b87b9437eff7366440c3 100644 (file)
@@ -2148,7 +2148,7 @@ bool expectProxyProtocol(const ComboAddress& from, const ComboAddress& listenAdd
 
 bool matchOTConditions(const std::unique_ptr<OpenTelemetryTraceConditions>& conditions, const ComboAddress& source)
 {
-  if (conditions == nullptr || conditions->size() == 0) {
+  if (conditions == nullptr || conditions->empty()) {
     return false;
   }
   if (auto const* match = conditions->lookup(source); match != nullptr) {
@@ -2162,7 +2162,7 @@ bool matchOTConditions(const std::unique_ptr<OpenTelemetryTraceConditions>& cond
 
 bool matchOTConditions(RecEventTrace& eventTrace, const std::unique_ptr<OpenTelemetryTraceConditions>& conditions, const ComboAddress& source, const DNSName& qname, QType qtype, uint16_t qid, bool edns_option_present)
 {
-  if (conditions == nullptr || conditions->size() == 0) {
+  if (conditions == nullptr || conditions->empty()) {
     return false;
   }
   if (auto const* match = conditions->lookup(source); match != nullptr) {