From 46c7ab4a82cf220b47ee979266ee73bce126880c Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 28 Oct 2019 03:04:25 +0100 Subject: [PATCH] Reduce unnecessary indentation. --- src/cli/main.cpp | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/cli/main.cpp b/src/cli/main.cpp index f7e142c..e696280 100644 --- a/src/cli/main.cpp +++ b/src/cli/main.cpp @@ -50,21 +50,19 @@ int App::main(const std::vector &args) { return 0; } - else + + if (_argument_error) { - if (_argument_error) - { - return 1; - } - if (!args.empty()) - { - _uri = args[0]; - } - if (_uri.empty() && _format == export_format::undefined) - { - cerr << "Error: You have to specify either an URI or --export.\n"; - return 1; - } + return 1; + } + if (!args.empty()) + { + _uri = args[0]; + } + if (_uri.empty() && _format == export_format::undefined) + { + cerr << "Error: You have to specify either an URI or --export.\n"; + return 1; } Database db;