From: Peter van Dijk Date: Tue, 16 Jan 2024 14:15:13 +0000 (+0100) Subject: tidy: use .empty() X-Git-Tag: dnsdist-1.9.0-rc1~26^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d3cd0635e5f9869b53423914d2a9b48c2327015f;p=thirdparty%2Fpdns.git tidy: use .empty() --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index 4d6bcb96d2..dacc3cee76 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -735,7 +735,7 @@ static void setupLuaRecords(LuaContext& lua) } catch (const PDNSException &e) { return allZerosIP; } - } else if (parts.size() >= 1) { + } else if (!parts.empty()) { // either hex string, or 12-13-14-15 vector ip_parts; auto input = parts[0];