Skip to content

Commit c9e4dff

Browse files
committed
Don't compare with float
1 parent d2d0dcc commit c9e4dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ferrum/page/screenshot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def screenshot_options(path = nil, format: nil, scale: 1.0, **opts)
150150
options.merge!(clip: get_bounding_rect(opts[:selector]).merge(scale: scale))
151151
end
152152

153-
if scale != 1.0
153+
if scale != 1
154154
unless options[:clip]
155155
width, height = viewport_size
156156
options[:clip] = { x: 0, y: 0, width: width, height: height }

0 commit comments

Comments
 (0)