diff --git a/plugins/embark-assistant/embark-assistant.cpp b/plugins/embark-assistant/embark-assistant.cpp index 68db916cf..cac6eb900 100644 --- a/plugins/embark-assistant/embark-assistant.cpp +++ b/plugins/embark-assistant/embark-assistant.cpp @@ -259,9 +259,9 @@ command_result embark_assistant(color_ostream &out, std::vector & parameters[0] == "fileresult") { remove(fileresult_file_name); fileresult = true; - } else - if (!parameters.empty()) + } else if (!parameters.empty()) { return CR_WRONG_USAGE; + } CoreSuspender suspend;