Reduce unnecessary indentation.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-10-28 03:04:25 +01:00
parent b23347f61a
commit 46c7ab4a82
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 12 additions and 14 deletions

View File

@ -50,21 +50,19 @@ int App::main(const std::vector<std::string> &args)
{ {
return 0; return 0;
} }
else
if (_argument_error)
{ {
if (_argument_error) return 1;
{ }
return 1; if (!args.empty())
} {
if (!args.empty()) _uri = args[0];
{ }
_uri = args[0]; if (_uri.empty() && _format == export_format::undefined)
} {
if (_uri.empty() && _format == export_format::undefined) cerr << "Error: You have to specify either an URI or --export.\n";
{ return 1;
cerr << "Error: You have to specify either an URI or --export.\n";
return 1;
}
} }
Database db; Database db;