We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
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?
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: