From 3a66f1fbf606157ea3f3ae96e2e9577a54a60886 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Mon, 3 Apr 2017 11:28:42 -0700 Subject: [PATCH] ceph-objectstore-tool: cleanup comment Signed-off-by: David Zafman --- src/tools/ceph_objectstore_tool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 6b173f204d0..f9bf85a5d63 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"; -- 2.39.5