From 145449b1e420787bb99721a429341fa6be3adfb6 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 3 Jul 2022 16:10:23 +0200 Subject: Vendor import of llvm-project main llvmorg-15-init-15358-g53dc0f107877. --- lldb/source/Commands/CommandObjectVersion.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lldb/source/Commands/CommandObjectVersion.cpp') diff --git a/lldb/source/Commands/CommandObjectVersion.cpp b/lldb/source/Commands/CommandObjectVersion.cpp index e15faba5661e..9b3c9e67a1a7 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; } -- cgit v1.3