Skip to content

best way to save what you love

match: remove redundant `url` argument

dumbmoron0a7cdfbbfe1d
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;