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:
@@ -37,7 +37,7 @@ struct Converter<UUID> {
|
||||
|
||||
UUID uid;
|
||||
|
||||
if (guid.length() > 0) {
|
||||
if (!guid.empty()) {
|
||||
if (guid[0] == '{' && guid[guid.length() - 1] == '}') {
|
||||
guid = guid.substr(1, guid.length() - 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user