Skip to content

Commit

Permalink
chore: rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
route committed Nov 19, 2024
1 parent 66b1c82 commit 7cc1a63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/ferrum/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def initialize(message = "Could not compute content quads")

class InvalidScreenshotFormatError < Error
def initialize(format)
super("Invalid value #{format} for option `:format` (#{Page::Screenshot::SUPPORTED_SCREENSHOT_FORMAT.join(' | ')})")
valid_formats = Page::Screenshot::SUPPORTED_SCREENSHOT_FORMAT.join(" | ")
super("Invalid value #{format} for option `:format` (#{valid_formats})")
end
end

Expand Down
3 changes: 2 additions & 1 deletion lib/ferrum/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ def bypass_csp(enabled: true)
end

#
# Activates (focuses) the target for the given page. When you have multiple tabs you work with, and you need to switch a given one.
# Activates (focuses) the target for the given page.
# When you have multiple tabs you work with, and you need to switch a given one.
#
# @return [Boolean]
#
Expand Down

0 comments on commit 7cc1a63

Please sign in to comment.