mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-26 16:52:12 +05:30
Refactor arg_array
This commit is contained in:
parent
2490833b6b
commit
0ed3e5d547
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user