Remove broken and unnecessary check

This commit is contained in:
TAG-Epic
2020-08-23 22:33:06 +02:00
parent 9eddc330c5
commit a897c313fb

View File

@@ -203,7 +203,7 @@ async function voteOnSponsorTime(req, res) {
webhookURL = config.discordCompletelyIncorrectReportWebhookURL;
}
if (config.youtubeAPIKey !== null && (webhookURL !== null || config.webhooks.size !== 0)) {
if (config.youtubeAPIKey !== null) {
YouTubeAPI.videos.list({
part: "snippet",
id: submissionInfoRow.videoID