From 0c2e39214f6674aaf366696d7379652681cbd0f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 12 Sep 2024 19:55:56 +0800 Subject: [PATCH] style: lint --- src/core/apis/file.ts | 4 ++-- src/onebot/action/group/GetGroupInfo.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); }