Open seanlinsley opened 11 years ago
This code prevents single-element arrays from being passed as an argument.
if args_exp && args_exp.first == :array # FIX processed = "#{process(args_exp)[1..-2]}" else processed = process args_exp end
A simple example:
[3] | [4]
Changing it to a one-liner works just fine, and the tests pass :)
processed = process args_exp
Does anyone know what that conditional was supposed to fix? I can't seem to find an example.
Hard to say, as it's hidden in the initial commit, which is 5 years in the past.
@svenfuchs, can you remember the reason for this?
This code prevents single-element arrays from being passed as an argument.
A simple example:
Changing it to a one-liner works just fine, and the tests pass :)
Does anyone know what that conditional was supposed to fix? I can't seem to find an example.