chore: prefer empty() check for readability (#29360)
This commit is contained in:
parent
77ecc7d432
commit
9bb7051f54
4 changed files with 5 additions and 6 deletions
|
@ -54,7 +54,7 @@ std::pair<scoped_refptr<const Extension>, std::string> LoadUnpacked(
|
|||
|
||||
std::string warnings;
|
||||
// Log warnings.
|
||||
if (extension->install_warnings().size()) {
|
||||
if (!extension->install_warnings().empty()) {
|
||||
warnings += "Warnings loading extension at " +
|
||||
base::UTF16ToUTF8(extension_dir.LossyDisplayName()) + ":\n";
|
||||
for (const auto& warning : extension->install_warnings()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue