Skip to content

Commit 155eac7

Browse files
committed
[lldb][lldb-dap] remove + prefix
checking if it starts_with prefix is redundant since consume front also check it
1 parent a84c26a commit 155eac7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/source/Commands/CommandObjectThread.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,8 +1650,7 @@ class CommandObjectThreadJump : public CommandObjectParsed {
16501650
option_arg.str().c_str());
16511651
break;
16521652
case 'b': {
1653-
if (option_arg.starts_with('+'))
1654-
option_arg.consume_front("+");
1653+
option_arg.consume_front("+");
16551654

16561655
if (option_arg.getAsInteger(0, m_line_offset))
16571656
return Status::FromErrorStringWithFormat("invalid line offset: '%s'.",

0 commit comments

Comments
 (0)