From c5fc0af8edd239a2e86e2b470d66c2cd88aabec7 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 21 Feb 2025 10:56:23 +0100 Subject: [PATCH] rec: Fix clang-tidy's warning --- pdns/recursordist/rec_channel_rec.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/recursordist/rec_channel_rec.cc b/pdns/recursordist/rec_channel_rec.cc index d8ef379b2a..293ae1dbca 100644 --- a/pdns/recursordist/rec_channel_rec.cc +++ b/pdns/recursordist/rec_channel_rec.cc @@ -181,10 +181,10 @@ static std::optional get(const string& name) { std::optional ret; - if (d_getatomics.count(name)) { + if (d_getatomics.count(name) != 0) { return d_getatomics.find(name)->second->load(); } - if (d_get64bitmembers.count(name)) { + if (d_get64bitmembers.count(name) != 0) { return d_get64bitmembers.find(name)->second(); } -- 2.47.2