From 29a00fbcd9fa548ecb0d5f5ea4693db7c27e19c1 Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Fri, 23 Sep 2022 13:59:40 +0200 Subject: [PATCH] Code style: add curly braces Signed-off-by: Thomas Lauf --- src/commands/CmdReport.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/CmdReport.cpp b/src/commands/CmdReport.cpp index 11fc0287..9f3e6b66 100644 --- a/src/commands/CmdReport.cpp +++ b/src/commands/CmdReport.cpp @@ -86,11 +86,17 @@ int CmdReport ( { std::string script; for (auto& arg : cli._args) + { if (arg.hasTag ("EXT")) + { script = findExtension (extensions, arg.attribute ("canonical")); + } + } if (script.empty ()) + { throw std::string ("Specify which report to run."); + } // Compose Header info. auto filter = cli.getFilter ();