Skip to content

Commit

Permalink
rgw/rgw_rados.cc: use empty() instead of checking for size() > 0
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
  • Loading branch information
dalgaaf committed Jul 12, 2013
1 parent ea0fcfa commit 22e0dbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rgw/rgw_rados.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3884,8 +3884,7 @@ int RGWRados::get_obj(void *ctx, RGWObjVersionTracker *objv_tracker, void **hand
else
len = end - ofs + 1;

if (astate->has_manifest &&
astate->manifest.objs.size() > 0) {
if (astate->has_manifest && !astate->manifest.objs.empty()) {
/* now get the relevant object part */
map<uint64_t, RGWObjManifestPart>::iterator iter = astate->manifest.objs.upper_bound(ofs);
/* we're now pointing at the next part (unless the first part starts at a higher ofs),
Expand Down

0 comments on commit 22e0dbb

Please sign in to comment.