From: n0tlu5 Date: Sat, 28 Dec 2024 09:56:36 +0000 (+0700) Subject: follow readability-implicit-bool-conversion lint X-Git-Tag: dnsdist-2.0.0-alpha1~178^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15fb57cda10fb96f92c72fff8cc3a063ed32ab54;p=thirdparty%2Fpdns.git follow readability-implicit-bool-conversion lint --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index 8dd0f83517..093503979d 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -1192,14 +1192,14 @@ static void setupLuaRecords(LuaContext& lua) // NOLINT(readability-function-cogn opts = *options; items.reserve(ips.capacity()); - bool available = 0; + bool available = false; vector conv = convComboAddressList(ips); for (auto& entry : conv) { int weight = 0; weight = g_up.isUp(entry, url, opts); if(weight>0) - available = 1; + available = true; items.emplace_back(weight, entry); } if(available)