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:
Danny Al-Gaaf 2015-01-02 15:46:59 +01:00
parent 369af32278
commit 42417e2d03

View File

@ -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 {