Skip to content

Commit 8265b4f

Browse files
authored
fix defined? expression
`defined? a && b` is evaluated as `defined?(a && b)` and the return value always `expression`.
1 parent eb8cc77 commit 8265b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/debug/server_dap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def process
183183
send_response req, breakpoints: filters
184184
when 'configurationDone'
185185
send_response req
186-
if defined? @is_attach && @is_attach
186+
if defined?(@is_attach) && @is_attach
187187
@q_msg << 'p'
188188
send_event 'stopped', reason: 'pause',
189189
threadId: 1,

0 commit comments

Comments
 (0)