summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-02-11 22:05:22 -0600
committerOmar Roth <omarroth@hotmail.com>2018-02-11 22:05:22 -0600
commit42df0df5a0270fbb61abef22e1e071dc77b77909 (patch)
treed6aec3a2b65aa57d4ca5ceb4069534504fec4ff6 /src
parent489ae35f1d045fd5c13cfa18a44b306f340e07a5 (diff)
downloadinvidious-42df0df5a0270fbb61abef22e1e071dc77b77909.tar.gz
invidious-42df0df5a0270fbb61abef22e1e071dc77b77909.tar.bz2
invidious-42df0df5a0270fbb61abef22e1e071dc77b77909.zip
Clean up argument creation
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index b54630fd..b7bbc5af 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -118,9 +118,9 @@ spawn do
client = get_client(pool)
args = [] of String
- 1..(top.size - 1).times { |i| args << "($#{i + 1}), " }
- args << "($#{top.size}) "
+ (1..top.size).each { |i| args << "($#{i})," }
args = args.join("")
+ args = args.chomp(",")
videos = [] of Video