Skip to content

Commit 9399d01

Browse files
committed
Fix rubocop
1 parent bb8d3b0 commit 9399d01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/ferrum/page/tracing.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def initialize(page)
2020
end
2121

2222
def record(path: nil, encoding: :binary, timeout: nil, trace_config: nil, screenshots: false)
23-
@path, @encoding = path, encoding
23+
@path = path
24+
@encoding = encoding
2425
@result = Concurrent::Promises.resolvable_future
2526
trace_config ||= DEFAULT_TRACE_CONFIG.dup
2627

@@ -53,8 +54,9 @@ def subscribe_tracing_complete
5354

5455
@page.on("Tracing.tracingComplete") do |event, index|
5556
next if index.to_i != 0
57+
5658
@result.fulfill(stream_handle(event["stream"]))
57-
rescue => e
59+
rescue StandardError => e
5860
@result.reject(e)
5961
end
6062

0 commit comments

Comments
 (0)