XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

chore: remove redundant conditional

2b56e0de
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +0 -5
Modified src/controllers/api/loginController.ts +0 -5
@@ -51,11 +51,6 @@ export const loginController: RequestHandler = async (request, response) => {
51 51 ? request.query.buildLabel.split(" ").join("+")
52 52 : buildConfig.buildLabel;
53 53
54 if (!isAndroid && version_compare(buildLabel, "2025.12.10.16.35") > 0) {
55 response.status(400).json({ error: "do you want me to change your diapers, too?" });
56 return;
57 }
58
59 54 if (
60 55 !account &&
61 56 ((config.autoCreateAccount && loginRequest.ClientType != "webui") ||