]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
remove redundant condition
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Tue, 29 Jun 2021 14:52:29 +0000 (16:52 +0200)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Wed, 30 Jun 2021 15:47:59 +0000 (17:47 +0200)
pdns/pdns_recursor.cc

index 7d5b385ac5e683463664d0b32fe1cc10eab33580..71a4cb4fbd21a24d5d6171e49697fbc734bc310f 100644 (file)
@@ -1039,10 +1039,8 @@ static void protobufLogQuery(LocalStateHolder<LuaConfigItems>& luaconfsLocal, co
   if (!policyTags.empty()) {
     m.addPolicyTags(policyTags);
   }
-  if (!meta.empty()) {
-    for (const auto& mit : meta) {
-      m.setMeta(mit.first, mit.second.stringVal, mit.second.intVal);
-    }
+  for (const auto& mit : meta) {
+    m.setMeta(mit.first, mit.second.stringVal, mit.second.intVal);
   }
 
   std::string msg(m.finishAndMoveBuf());