mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 05:55:28 +00:00
[3919] Changed size > 0 by !empty
This commit is contained in:
@@ -785,7 +785,7 @@ TEST_F(CommandOptionsTest, Interface) {
|
||||
// The local loopback interface should be available.
|
||||
// If no interface have been found for any reason we should
|
||||
// not fail this test.
|
||||
if (ifaces.size() > 0) {
|
||||
if (!ifaces.empty()) {
|
||||
// Get the name of the interface we detected.
|
||||
iface_name = (*ifaces.begin())->getName();
|
||||
// Use the name in the command parser.
|
||||
|
Reference in New Issue
Block a user