summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y7
1 files changed, 1 insertions, 6 deletions
diff --git a/parse.y b/parse.y
index 03bbb3bd36..4698c35bfb 100644
--- a/parse.y
+++ b/parse.y
@@ -2035,12 +2035,7 @@ arg : lhs '=' arg
| tUPLUS arg
{
/*%%%*/
- if ($2 && nd_type($2) == NODE_LIT) {
- $$ = $2;
- }
- else {
- $$ = call_uni_op($2, tUPLUS);
- }
+ $$ = call_uni_op($2, tUPLUS);
/*%
$$ = dispatch2(unary, ripper_intern("+@"), $2);
%*/