File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -69,15 +69,13 @@ def size
6969
7070 private
7171
72- # rubocop:disable Metrics/PerceivedComplexity
72+ # rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
7373 def subscribe
7474 @client . on ( "Target.attachedToTarget" ) do |params |
7575 info , session_id = params . values_at ( "targetInfo" , "sessionId" )
7676 next unless ALLOWED_TARGET_TYPES . include? ( info [ "type" ] )
7777
7878 context_id = info [ "browserContextId" ]
79-
80- # no-startup-window off
8179 unless @contexts [ context_id ]
8280 context = Context . new ( @client , self , context_id )
8381 @contexts [ context_id ] = context
@@ -122,7 +120,7 @@ def subscribe
122120 context &.delete_target ( params [ "targetId" ] )
123121 end
124122 end
125- # rubocop:enable Metrics/PerceivedComplexity
123+ # rubocop:enable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
126124
127125 def discover
128126 @client . command ( "Target.setDiscoverTargets" , discover : true )
You can’t perform that action at this time.
0 commit comments