style: 标准化样式

This commit is contained in:
手瓜一十雪
2024-08-25 21:37:36 +08:00
parent 136e27d655
commit 7b7609a068
7 changed files with 9 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ class MarkMsgAsRead extends BaseAction<PlayloadType, null> {
// 调用API
const ret = await NTQQMsgApi.setMsgRead(await this.getPeer(payload));
if (ret.result != 0) {
throw ('设置已读失败,' + ret.errMsg);
throw new Error('设置已读失败,' + ret.errMsg);
}
return null;
}