Skip to content

Commit 8e13c8e

Browse files
committed
Fix rubocop warnings
1 parent 8e0c6ba commit 8e13c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ferrum/node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def find_position(x: nil, y: nil, position: :top)
197197
def computed_style
198198
page
199199
.command("CSS.getComputedStyleForNode", nodeId: node_id)["computedStyle"]
200-
.inject({}) { |memo, style| memo[style["name"]] = style["value"]; memo }
200+
.each_with_object({}) { |style, memo| memo.merge!(style["name"] => style["value"]) }
201201
end
202202

203203
private

0 commit comments

Comments
 (0)