ceph-objectstore-tool: Eliminate obscure "Invalid params" error

Will fail later with "No such file or directory" for an empty data-path
because we've already checked for vm.count("data-path")

Signed-off-by: David Zafman <dzafman@redhat.com>
This commit is contained in:
David Zafman 2015-02-09 17:14:50 -08:00
parent 565b413df9
commit cfca6835bd

View File

@ -2460,11 +2460,6 @@ int main(int argc, char **argv)
return 1;
}
if (dpath.length() == 0) {
cerr << "Invalid params" << std::endl;
return 1;
}
osflagbits_t flags = 0;
if (vm.count("skip-journal-replay"))
flags |= SKIP_JOURNAL_REPLAY;