mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: prefer empty() check for readability (#26109)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user