Skip to content

Commit 66b1c82

Browse files
committed
chore: rubocop
1 parent 600d63d commit 66b1c82

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/ferrum/page/screenshot.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ def format_options(format, path, quality)
224224

225225
format ||= DEFAULT_SCREENSHOT_FORMAT
226226
format = format.to_s
227-
unless SUPPORTED_SCREENSHOT_FORMAT.include?(format)
228-
raise Ferrum::InvalidScreenshotFormatError, format
229-
end
227+
raise Ferrum::InvalidScreenshotFormatError, format unless SUPPORTED_SCREENSHOT_FORMAT.include?(format)
230228

231229
format = "jpeg" if format == "jpg"
232230

0 commit comments

Comments
 (0)