From: David Zafman Date: Mon, 3 Apr 2017 18:28:42 +0000 (-0700) Subject: ceph-objectstore-tool: cleanup comment X-Git-Tag: v12.0.2~51^2~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3a66f1fbf606157ea3f3ae96e2e9577a54a60886;p=ceph.git ceph-objectstore-tool: cleanup comment Signed-off-by: David Zafman --- diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 6b173f204d02..f9bf85a5d63a 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -2906,7 +2906,7 @@ int main(int argc, char **argv) throw std::runtime_error(ss.str()); } vector::iterator i = array.begin(); - //if (i == array.end() || i->type() != json_spirit::str_type) { + assert(i != array.end()); if (i->type() != json_spirit::str_type) { ss << "Object '" << object << "' must be a JSON array with the first element a string";