From: Remi Gacogne Date: Fri, 21 Feb 2025 09:56:23 +0000 (+0100) Subject: rec: Fix clang-tidy's warning X-Git-Tag: dnsdist-2.0.0-alpha1~67^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5fc0af8edd239a2e86e2b470d66c2cd88aabec7;p=thirdparty%2Fpdns.git rec: Fix clang-tidy's warning --- 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(); }