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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue