@@ -251,17 +251,17 @@ class RetryBecauseCantRead < Exception
251
251
end
252
252
253
253
def recv_request
254
- r = IO . select ( [ @sock ] )
254
+ IO . select ( [ @sock ] )
255
255
256
256
@session . process_group . sync do
257
257
raise RetryBecauseCantRead unless IO . select ( [ @sock ] , nil , nil , 0 )
258
258
259
- case header = @sock . gets
259
+ case @sock . gets
260
260
when /Content-Length: (\d +)/
261
261
b = @sock . read ( 2 )
262
262
raise b . inspect unless b == "\r \n "
263
263
264
- l = @sock . read ( s = $1. to_i )
264
+ l = @sock . read ( $1. to_i )
265
265
show_protocol :> , l
266
266
JSON . load ( l )
267
267
when nil
@@ -551,7 +551,7 @@ def process_protocol_request req
551
551
when 'stackTrace'
552
552
tid = req . dig ( 'arguments' , 'threadId' )
553
553
554
- if tc = find_waiting_tc ( tid )
554
+ if find_waiting_tc ( tid )
555
555
request_tc [ :dap , :backtrace , req ]
556
556
else
557
557
fail_response req
@@ -560,7 +560,7 @@ def process_protocol_request req
560
560
frame_id = req . dig ( 'arguments' , 'frameId' )
561
561
if @frame_map [ frame_id ]
562
562
tid , fid = @frame_map [ frame_id ]
563
- if tc = find_waiting_tc ( tid )
563
+ if find_waiting_tc ( tid )
564
564
request_tc [ :dap , :scopes , req , fid ]
565
565
else
566
566
fail_response req
@@ -596,7 +596,7 @@ def process_protocol_request req
596
596
frame_id = ref [ 1 ]
597
597
tid , fid = @frame_map [ frame_id ]
598
598
599
- if tc = find_waiting_tc ( tid )
599
+ if find_waiting_tc ( tid )
600
600
request_tc [ :dap , :scope , req , fid ]
601
601
else
602
602
fail_response req
@@ -605,7 +605,7 @@ def process_protocol_request req
605
605
when :variable
606
606
tid , vid = ref [ 1 ] , ref [ 2 ]
607
607
608
- if tc = find_waiting_tc ( tid )
608
+ if find_waiting_tc ( tid )
609
609
request_tc [ :dap , :variable , req , vid ]
610
610
else
611
611
fail_response req
@@ -624,7 +624,7 @@ def process_protocol_request req
624
624
tid , fid = @frame_map [ frame_id ]
625
625
expr = req . dig ( 'arguments' , 'expression' )
626
626
627
- if tc = find_waiting_tc ( tid )
627
+ if find_waiting_tc ( tid )
628
628
request_tc [ :dap , :evaluate , req , fid , expr , context ]
629
629
else
630
630
fail_response req
@@ -645,7 +645,7 @@ def process_protocol_request req
645
645
frame_id = req . dig ( 'arguments' , 'frameId' )
646
646
tid , fid = @frame_map [ frame_id ]
647
647
648
- if tc = find_waiting_tc ( tid )
648
+ if find_waiting_tc ( tid )
649
649
text = req . dig ( 'arguments' , 'text' )
650
650
line = req . dig ( 'arguments' , 'line' )
651
651
if col = req . dig ( 'arguments' , 'column' )
0 commit comments