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

@ -564,7 +564,7 @@ void OverrideGlobalValueFromIsolatedWorld(
const std::vector<std::string>& key_path,
v8::Local<v8::Object> value,
bool support_dynamic_properties) {
if (key_path.size() == 0)
if (key_path.empty())
return;
auto* render_frame = GetRenderFrame(value);
@ -596,7 +596,7 @@ bool OverrideGlobalPropertyFromIsolatedWorld(
v8::Local<v8::Object> getter,
v8::Local<v8::Value> setter,
gin_helper::Arguments* args) {
if (key_path.size() == 0)
if (key_path.empty())
return false;
auto* render_frame = GetRenderFrame(getter);