Skip to content

Commit 53a9195

Browse files
committed
Don't use || assignment
1 parent 346b24d commit 53a9195

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/capybara/cuprite/browser.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def drag(node, other)
124124

125125
def drag_by(node, x, y)
126126
x1, y1 = node.find_position
127-
x2, y2 = x1 + x, y1 + y
127+
x2 = x1 + x
128+
y2 = y1 + y
128129

129130
mouse.move(x: x1, y: y1)
130131
mouse.down

0 commit comments

Comments
 (0)