feat: add rustfmt configuration and CI workflow for code formatting
refactor: streamline formatting workflow by removing unused taplo steps and clarifying directory change refactor: remove unnecessary directory change step in formatting workflow
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export default function debounce<T extends (...args: any[]) => void>(
|
||||
func: T,
|
||||
wait: number
|
||||
wait: number,
|
||||
): T {
|
||||
let timeout: ReturnType<typeof setTimeout> | null = null;
|
||||
return function (this: any, ...args: Parameters<T>) {
|
||||
|
||||
@@ -578,8 +578,8 @@ function URI_VLESS(line: string): IProxyVlessConfig {
|
||||
proxy.network = "ws";
|
||||
httpupgrade = true;
|
||||
} else {
|
||||
proxy.network = ["tcp", "ws", "http", "grpc", "h2"].includes(params.type)
|
||||
? (params.type as NetworkType)
|
||||
proxy.network = ["tcp", "ws", "http", "grpc", "h2"].includes(params.type)
|
||||
? (params.type as NetworkType)
|
||||
: "tcp";
|
||||
}
|
||||
if (!proxy.network && isShadowrocket && params.obfs) {
|
||||
|
||||
Reference in New Issue
Block a user