Update script.js

This commit is contained in:
xixu-me authored and GitHub committed 2024-10-11 03:52:04 +08:00
1 parent 77fb3a0e61
commit 86ffe68b6d
1 file changed
+1 -2
+1 -2
View File
@@ -482,11 +482,10 @@ function validateOriginalConfig(config) {
config?.["proxy-providers"] !== null
? Object.keys(config?.["proxy-providers"])?.length
: 0;
if (proxyCount === 0 && proxyProviderCount === 0) {
if (proxyCount === 0 && proxyProviderCount === 0)
throw new Error(
"The original configuration must contain a non-empty proxies array (https://wiki.metacubex.one/config/proxies/) or a proxy-providers object with at least one property (https://wiki.metacubex.one/config/proxy-providers/)"
);
}
}
function main(config) {