Skip to content

Commit b25913c

Browse files
routeBrad Collins
authored andcommitted
chore: rubocop
1 parent 8977fc8 commit b25913c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/ferrum/errors.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def initialize(message = "Could not compute content quads")
8080

8181
class InvalidScreenshotFormatError < Error
8282
def initialize(format)
83-
super("Invalid value #{format} for option `:format` (#{Page::Screenshot::SUPPORTED_SCREENSHOT_FORMAT.join(' | ')})")
83+
valid_formats = Page::Screenshot::SUPPORTED_SCREENSHOT_FORMAT.join(" | ")
84+
super("Invalid value #{format} for option `:format` (#{valid_formats})")
8485
end
8586
end
8687

lib/ferrum/page.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ def bypass_csp(enabled: true)
339339
end
340340

341341
#
342-
# Activates (focuses) the target for the given page. When you have multiple tabs you work with, and you need to switch a given one.
342+
# Activates (focuses) the target for the given page.
343+
# When you have multiple tabs you work with, and you need to switch a given one.
343344
#
344345
# @return [Boolean]
345346
#

0 commit comments

Comments
 (0)