mirror of
https://github.com/ceph/ceph
synced 2025-01-30 06:53:38 +00:00
KeyValueStore.cc: prefer !empty() over size() for emptiness check
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
369af32278
commit
42417e2d03
@ -2257,7 +2257,7 @@ int KeyValueStore::collection_getattr(coll_t c, const char *name,
|
||||
r = -EINVAL;
|
||||
}
|
||||
|
||||
if (out.size()) {
|
||||
if (!out.empty()) {
|
||||
bl.swap(out.begin()->second);
|
||||
r = bl.length();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user