From 59276fed5de3f583a812f439c207aa5084d279fa Mon Sep 17 00:00:00 2001 From: flavjyk4 <156455420+flavjyk4@users.noreply.github.com> Date: Wed, 7 Aug 2024 22:10:07 +0000 Subject: [PATCH] stop deepsource from complaining --- src/modules/processing/services/applemusic.js | 2 +- src/modules/processing/services/spotify.js | 2 +- src/modules/processing/servicesPatternTesters.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/processing/services/applemusic.js b/src/modules/processing/services/applemusic.js index 7af5dec7..033a1f86 100644 --- a/src/modules/processing/services/applemusic.js +++ b/src/modules/processing/services/applemusic.js @@ -1,4 +1,4 @@ -export default async function({}) { +export default function({}) { return { urls: "https://http.cat/451" } diff --git a/src/modules/processing/services/spotify.js b/src/modules/processing/services/spotify.js index 7af5dec7..033a1f86 100644 --- a/src/modules/processing/services/spotify.js +++ b/src/modules/processing/services/spotify.js @@ -1,4 +1,4 @@ -export default async function({}) { +export default function({}) { return { urls: "https://http.cat/451" } diff --git a/src/modules/processing/servicesPatternTesters.js b/src/modules/processing/servicesPatternTesters.js index baa21627..1e0a2750 100644 --- a/src/modules/processing/servicesPatternTesters.js +++ b/src/modules/processing/servicesPatternTesters.js @@ -64,8 +64,8 @@ export const testers = { "youtube": (patternMatch) => patternMatch.id?.length <= 11, - "spotify": (patternMatch) => 1, - "apple": (patternMatch) => 1, + "spotify": (patternMatch) => patternMatch, + "apple": (patternMatch) => patternMatch, "facebook": (patternMatch) => patternMatch.shortLink?.length <= 11