Commit 4c27898c authored by Max Kellermann's avatar Max Kellermann

{Other,Database}Commands: contract declaration and assignment

parent e9a85aa4
......@@ -34,13 +34,10 @@
CommandResult
handle_lsinfo2(Client &client, int argc, char *argv[])
{
const char *uri;
if (argc == 2)
uri = argv[1];
else
const char *const uri = argc == 2
? argv[1]
/* default is root directory */
uri = "";
: "";
const DatabaseSelection selection(uri, false);
......
......@@ -121,13 +121,10 @@ static constexpr tag_handler print_tag_handler = {
CommandResult
handle_lsinfo(Client &client, int argc, char *argv[])
{
const char *uri;
if (argc == 2)
uri = argv[1];
else
const char *const uri = argc == 2
? argv[1]
/* default is root directory */
uri = "";
: "";
if (memcmp(uri, "file:///", 8) == 0) {
/* print information about an arbitrary local file */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment