mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 13:01:14 +00:00
style: lint
This commit is contained in:
parent
13afa2c7ab
commit
0a06637e78
@ -31,15 +31,15 @@ export class PacketSession {
|
||||
private newClient(core: NapCatCore): PacketClient {
|
||||
const prefer = core.configLoader.configData.packetBackend;
|
||||
switch (prefer) {
|
||||
case "native":
|
||||
return new NativePacketClient(core);
|
||||
case "frida":
|
||||
return new wsPacketClient(core);
|
||||
case "auto":
|
||||
case undefined:
|
||||
return this.judgeClient(core);
|
||||
default:
|
||||
throw new Error(`[Core] [Packet] 未知的Packet后端类型 ${prefer},请检查配置文件!`);
|
||||
case "native":
|
||||
return new NativePacketClient(core);
|
||||
case "frida":
|
||||
return new wsPacketClient(core);
|
||||
case "auto":
|
||||
case undefined:
|
||||
return this.judgeClient(core);
|
||||
default:
|
||||
throw new Error(`[Core] [Packet] 未知的Packet后端类型 ${prefer},请检查配置文件!`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user