From 0a7cdfbbfe1d90d1824b0415ed8c329f095e193b Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Wed, 15 May 2024 12:46:08 +0000 Subject: [PATCH] match: remove redundant `url` argument --- src/core/api.js | 2 +- src/modules/processing/match.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/api.js b/src/core/api.js index 3e4a2f8b..8c790023 100644 --- a/src/core/api.js +++ b/src/core/api.js @@ -113,7 +113,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) { return apiJSON(0, { t: errorUnsupported(lang) }) } - j = await match(parsed.host, parsed.patternMatch, chck.url, lang, chck) + j = await match(parsed.host, parsed.patternMatch, lang, chck) .catch(() => apiJSON(0, { t: loc(lang, 'ErrorSomethingWentWrong') })) } else { j = apiJSON(0, { diff --git a/src/modules/processing/match.js b/src/modules/processing/match.js index 6bbd0d2a..4de3e9b8 100644 --- a/src/modules/processing/match.js +++ b/src/modules/processing/match.js @@ -28,7 +28,8 @@ import dailymotion from "./services/dailymotion.js"; import { env } from '../config.js'; let freebind; -export default async function(host, patternMatch, url, lang, obj) { +export default async function(host, patternMatch, lang, obj) { + const { url } = obj; assert(url instanceof URL); let dispatcher, requestIP;