chore: prefer empty() check for readability (#26109)

This commit is contained in:
David Sanders 2020-10-22 13:24:59 -07:00 committed by GitHub
parent d9db9873fd
commit 554ad93d45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 15 additions and 15 deletions

View file

@ -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;