aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectVersion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectVersion.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectVersion.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectVersion.cpp b/lldb/source/Commands/CommandObjectVersion.cpp
index e15faba..9b3c9e6 100644
--- a/lldb/source/Commands/CommandObjectVersion.cpp
+++ b/lldb/source/Commands/CommandObjectVersion.cpp
@@ -23,11 +23,7 @@ CommandObjectVersion::CommandObjectVersion(CommandInterpreter &interpreter)
CommandObjectVersion::~CommandObjectVersion() = default;
bool CommandObjectVersion::DoExecute(Args &args, CommandReturnObject &result) {
- if (args.GetArgumentCount() == 0) {
- result.AppendMessageWithFormat("%s\n", lldb_private::GetVersion());
- result.SetStatus(eReturnStatusSuccessFinishResult);
- } else {
- result.AppendError("the version command takes no arguments.");
- }
+ result.AppendMessageWithFormat("%s\n", lldb_private::GetVersion());
+ result.SetStatus(eReturnStatusSuccessFinishResult);
return true;
}