From 30949eda00bac7cc204ae842b1d5a16e9cb831c8 Mon Sep 17 00:00:00 2001 From: hyperdefined Date: Fri, 26 Jul 2024 18:18:52 -0400 Subject: [PATCH] cleanup: fix deepsource warnings --- src/modules/processing/services/newgrounds.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/processing/services/newgrounds.js b/src/modules/processing/services/newgrounds.js index d94449c6..d8a1df9d 100644 --- a/src/modules/processing/services/newgrounds.js +++ b/src/modules/processing/services/newgrounds.js @@ -18,7 +18,7 @@ async function video(obj) { json = JSON.parse(req); } catch { return { error: 'ErrorEmptyDownload' }; } const highestQuality = Object.keys(json.sources)[0]; - const video = json.sources[highestQuality][0].src; + const videoSrc = json.sources[highestQuality][0].src; if (!json.sources[highestQuality][0].type.includes('mp4')) { return { error: 'ErrorCouldntFetch' }; } @@ -29,7 +29,7 @@ async function video(obj) { } return { - urls: video, + urls: videoSrc, filenameAttributes: { service: "newgrounds", id: obj.id, @@ -81,7 +81,7 @@ async function music(obj) { } } -export default async function(obj) { +export default function(obj) { // handle video downloads if (obj.type == 'portal') { return video(obj);