Skip to content

Commit c5bc2d9

Browse files
committed
chore: disable linter
1 parent 5dd4320 commit c5bc2d9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/ferrum/contexts.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)