From 42df0df5a0270fbb61abef22e1e071dc77b77909 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 11 Feb 2018 22:05:22 -0600 Subject: [PATCH] Clean up argument creation --- src/invidious.cr | 4 ++-- 1 file 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