File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def on_send(node)
37
37
# ...then each key/value pair is treated as a method 'argument'
38
38
# when determining where line breaks should appear.
39
39
if ( last_arg = args . last )
40
- args = args . concat ( args . pop . children ) if last_arg . hash_type? && !last_arg . braces?
40
+ args = args [ 0 ...- 1 ] + last_arg . children if last_arg . hash_type? && !last_arg . braces?
41
41
end
42
42
43
43
check_line_breaks ( node , args )
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ def process_args(args)
171
171
# ...then each key/value pair is treated as a method 'argument'
172
172
# when determining where line breaks should appear.
173
173
if ( last_arg = args . last )
174
- args = args . concat ( args . pop . children ) if last_arg . hash_type? && !last_arg . braces?
174
+ args = args [ 0 ...- 1 ] + last_arg . children if last_arg . hash_type? && !last_arg . braces?
175
175
end
176
176
args
177
177
end
You can’t perform that action at this time.
0 commit comments