]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_rados.cc: prefer !empty() over size() for emptiness check
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 23 Jan 2015 16:51:30 +0000 (17:51 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 3 Feb 2015 21:51:08 +0000 (22:51 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_rados.cc

index 90ea927fe5d0dfb49b6c2e2d227c1c451721c885..8d87e2b61ce7e4f09738fce1122ac5942f75be31 100644 (file)
@@ -7535,7 +7535,7 @@ int RGWRados::cls_bucket_list(rgw_bucket& bucket, rgw_obj_key& start, const stri
     if (vcurrents[i] != vends[i])
       *is_truncated = true;
   }
-  if (m.size())
+  if (!m.empty())
     *last_entry = m.rbegin()->first;
 
   return 0;