diff --git a/src/core/apis/file.ts b/src/core/apis/file.ts index a3ba862c..52a36557 100644 --- a/src/core/apis/file.ts +++ b/src/core/apis/file.ts @@ -148,9 +148,9 @@ export class NTQQFileApi { logger.logError('获取视频信息失败,将使用默认值', e); } - let fileExt = 'mp4' + let fileExt = 'mp4'; try { - let tempExt = (await fileType.fileTypeFromFile(filePath))?.ext; + const tempExt = (await fileType.fileTypeFromFile(filePath))?.ext; if (tempExt) fileExt = tempExt; } catch (e) { this.context.logger.logError('获取文件类型失败', e); diff --git a/src/onebot/action/group/GetGroupInfo.ts b/src/onebot/action/group/GetGroupInfo.ts index c08e2fa2..ba00a893 100644 --- a/src/onebot/action/group/GetGroupInfo.ts +++ b/src/onebot/action/group/GetGroupInfo.ts @@ -29,7 +29,7 @@ class GetGroupInfo extends BaseAction { group_name: data.searchGroupInfo.groupName, member_count: data.searchGroupInfo.memberNum, max_member_count: data.searchGroupInfo.maxMemberNum, - } + }; } return OB11Entities.group(group); }