mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Refactor arg_array
This commit is contained in:
parent
2490833b6b
commit
0ed3e5d547
1 changed files with 2 additions and 3 deletions
|
@ -388,9 +388,8 @@ end
|
||||||
|
|
||||||
def arg_array(array)
|
def arg_array(array)
|
||||||
args = [] of String
|
args = [] of String
|
||||||
(1..array.size).each { |i| args << "($#{i})," }
|
(1..array.size).each { |i| args << "($#{i})" }
|
||||||
args = args.join("")
|
args = args.join(",")
|
||||||
args = args.chomp(",")
|
|
||||||
|
|
||||||
return args
|
return args
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue