Skip to content

Commit fcd79e1

Browse files
committed
Fixing formatting and addressing how we check for extra arguments.
1 parent 0266ba5 commit fcd79e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lldb/test/API/tools/lldb-dap/send-event/TestDAP_sendEvent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ def test_send_internal_event(self):
6262
"`lldb-dap send-event stopped", context="repl"
6363
)
6464
self.assertRegex(
65-
resp['body']['result'],
66-
r"Invalid use of lldb-dap send-event, event \"stopped\" should be handled by lldb-dap internally."
65+
resp["body"]["result"],
66+
r"Invalid use of lldb-dap send-event, event \"stopped\" should be handled by lldb-dap internally.",
6767
)

lldb/tools/lldb-dap/DAP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ bool SendEventRequestHandler::DoExecute(lldb::SBDebugger debugger,
997997

998998
if (command[1] && !llvm::StringRef(command[1]).empty()) {
999999
// See if we have to unused arguments.
1000-
if (command[2] && !llvm::StringRef(command[2]).empty()) {
1000+
if (command[2]) {
10011001
result.SetError(
10021002
"Additional arguments found, expected `lldb-dap send-event "
10031003
"<name> <body>?`.");

0 commit comments

Comments
 (0)