Skip to content

Commit

Permalink
chore: rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
route authored and Brad Collins committed Nov 27, 2024
1 parent 8977fc8 commit b25913c
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 @@ -339,7 +339,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 b25913c

Please sign in to comment.