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 600d63d commit 66b1c82
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ferrum/page/screenshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,7 @@ def format_options(format, path, quality)

format ||= DEFAULT_SCREENSHOT_FORMAT
format = format.to_s
unless SUPPORTED_SCREENSHOT_FORMAT.include?(format)
raise Ferrum::InvalidScreenshotFormatError, format
end
raise Ferrum::InvalidScreenshotFormatError, format unless SUPPORTED_SCREENSHOT_FORMAT.include?(format)

format = "jpeg" if format == "jpg"

Expand Down

0 comments on commit 66b1c82

Please sign in to comment.