Use empty() instead of size() == 0
MODIFY
src/vcpkg/commands.list.cpp
src/vcpkg/commands.list.cpp
@@ -58,7 +58,7 @@ namespace vcpkg::Commands::List
return lhs->package.displayname() < rhs->package.displayname();
});
- if (args.command_arguments.size() == 0)
+ if (args.command_arguments.empty())
{
for (const StatusParagraph* status_paragraph : installed_packages)
{

Use empty() instead of size() == 0