We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 848da7d commit a27cdc1Copy full SHA for a27cdc1
1 file changed
src/main/java/org/jruby/prism/builder/IRBuilderPrism.java
@@ -980,12 +980,8 @@ private Operand buildConstantWrite(ConstantWriteNode node) {
980
}
981
982
private Operand buildConstantWritePath(ConstantPathWriteNode node) {
983
- return buildConstantWritePath(node.target, build(node.value));
984
- }
985
-
986
- // Multiple assignments provide the value otherwise it is grabbed from .value on the node.
987
- private Operand buildConstantWritePath(ConstantPathNode path, Operand value) {
988
- return putConstant(buildModuleParent(path.parent), path.name, value);
+ var path = node.target;
+ return putConstant(buildModuleParent(path.parent), path.name, build(node.value));
989
990
991
private Operand buildDef(DefNode node) {
0 commit comments