chore: prefer empty() check for readability (#26109)
This commit is contained in:
parent
d9db9873fd
commit
554ad93d45
11 changed files with 15 additions and 15 deletions
|
@ -107,7 +107,7 @@ void ElectronDownloadManagerDelegate::OnDownloadPathGenerated(
|
|||
|
||||
if (!settings.parent_window)
|
||||
settings.parent_window = window;
|
||||
if (settings.title.size() == 0)
|
||||
if (settings.title.empty())
|
||||
settings.title = item->GetURL().spec();
|
||||
if (settings.default_path.empty())
|
||||
settings.default_path = default_path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue