mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: prefer empty() check for readability (#29360)
This commit is contained in:
@@ -177,7 +177,7 @@ std::vector<blink::MessagePortChannel> MessagePort::DisentanglePorts(
|
||||
v8::Isolate* isolate,
|
||||
const std::vector<gin::Handle<MessagePort>>& ports,
|
||||
bool* threw_exception) {
|
||||
if (!ports.size())
|
||||
if (ports.empty())
|
||||
return std::vector<blink::MessagePortChannel>();
|
||||
|
||||
std::unordered_set<MessagePort*> visited;
|
||||
|
||||
Reference in New Issue
Block a user