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