chore: remove unused imports

This commit is contained in:
wonfen
2025-06-23 00:06:47 +08:00
parent fee08f3826
commit 628de70e89
21 changed files with 25 additions and 194 deletions

View File

@@ -730,7 +730,7 @@ function URI_Trojan(line: string): IProxyTrojanConfig {
function URI_Hysteria2(line: string): IProxyHysteria2Config {
line = line.split(/(hysteria2|hy2):\/\//)[2];
// eslint-disable-next-line no-unused-vars
let [__, password, server, ___, port, ____, addons = "", name] =
/^(.*?)@(.*?)(:(\d+))?\/?(\?(.*?))?(?:#(.*?))?$/.exec(line) || [];
let portNum = parseInt(`${port}`, 10);