Skip to content

Commit

Permalink
Commit Kevin's suggestion to simplify grabbing the operator as a symbol.
Browse files Browse the repository at this point in the history
Co-Authored-By: Kevin Newton <kddnewton@gmail.com>
  • Loading branch information
noahgibbs and kddnewton committed Feb 7, 2024
1 parent 40cf114 commit a4e3dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prism/ripper_compat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def visit_unary_operator(value)
def visit_binary_operator(node)
left_val = visit(node.left)
right_val = visit(node.right)
on_binary(left_val, node.operator_loc.slice.to_sym, right_val)
on_binary(left_val, node.operator, right_val)
end

# This method is responsible for updating lineno and column information
Expand Down

0 comments on commit a4e3dc3

Please sign in to comment.