mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 13:07:02 +03:00
Remove broken and unnecessary check
This commit is contained in:
@@ -203,7 +203,7 @@ async function voteOnSponsorTime(req, res) {
|
|||||||
webhookURL = config.discordCompletelyIncorrectReportWebhookURL;
|
webhookURL = config.discordCompletelyIncorrectReportWebhookURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.youtubeAPIKey !== null && (webhookURL !== null || config.webhooks.size !== 0)) {
|
if (config.youtubeAPIKey !== null) {
|
||||||
YouTubeAPI.videos.list({
|
YouTubeAPI.videos.list({
|
||||||
part: "snippet",
|
part: "snippet",
|
||||||
id: submissionInfoRow.videoID
|
id: submissionInfoRow.videoID
|
||||||
|
|||||||
Reference in New Issue
Block a user