Refactor arg_array

This commit is contained in:
Omar Roth 2018-03-24 20:57:57 -05:00
parent 2490833b6b
commit 0ed3e5d547
1 changed files with 2 additions and 3 deletions

View File

@ -388,9 +388,8 @@ end
def arg_array(array)
args = [] of String
(1..array.size).each { |i| args << "($#{i})," }
args = args.join("")
args = args.chomp(",")
(1..array.size).each { |i| args << "($#{i})" }
args = args.join(",")
return args
end