From a4e3dc307cf58991b9f0fcad5fb1361c0e8eb41f Mon Sep 17 00:00:00 2001 From: Noah Gibbs Date: Wed, 7 Feb 2024 18:39:45 +0000 Subject: [PATCH] Commit Kevin's suggestion to simplify grabbing the operator as a symbol. Co-Authored-By: Kevin Newton --- lib/prism/ripper_compat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prism/ripper_compat.rb b/lib/prism/ripper_compat.rb index f25ec872f1f..cff7da84886 100644 --- a/lib/prism/ripper_compat.rb +++ b/lib/prism/ripper_compat.rb @@ -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