[CodeFactor] Apply fixes

[ci skip] [skip ci]
This commit is contained in:
codefactor-io 2022-08-02 13:16:25 +00:00
parent 4f4c383288
commit 1bfa41323f
No known key found for this signature in database
GPG Key ID: B66B2D63282C190F
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import Packet from "../kcp/Packet";
import Session from "../kcp/Session";
export default async function handle(session: Session, packet: Packet) {
let lineup = await session.player.getLineup();
const lineup = await session.player.getLineup();
session.send("GetCurLineupDataScRsp", {
retcode: 0,

View File

@ -8,7 +8,7 @@ export default async function handle(session: Session, packet: Packet) {
const body = packet.body as JoinLineupCsReq;
session.send("JoinLineupScRsp", { retcode: 0 });
let lineup = await session.player.getLineup();
const lineup = await session.player.getLineup();
const slot = body.slot || 0;
const avatarList = [];
for (const avatarId in lineup) {

View File

@ -5,7 +5,7 @@ import Session from "../kcp/Session";
export default async function handle(session: Session, packet: Packet) {
const body = packet.body as SetLineupNameCsReq;
let curLineup = await session.player.getLineup();
const curLineup = await session.player.getLineup();
curLineup.name = body.name;
session.player.setLineup(curLineup);
session.player.save();