🚨 修复 qodana 报错

This commit is contained in:
BTMuli
2023-10-25 18:32:33 +08:00
parent efa2156fb2
commit 73bf525d42
2 changed files with 3 additions and 4 deletions

View File

@@ -331,7 +331,7 @@ class TGClient {
async getDS(dsType: 2, callback: string, payload: any): Promise<void>;
async getDS(dsType: 1 | 2, callback: string, payload?: any): Promise<void> {
const saltType = dsType === 1 ? "lk2" : "common";
let ds = "";
let ds: string;
if (dsType === 2) {
const { body, query } = payload;
ds = getDS4JS(saltType, dsType, body, query);