chore: 修缮非 throw 方法返回值

This commit is contained in:
CrescentLeaf
2025-11-08 23:49:58 +08:00
parent 27035eb2ca
commit 3c5bd187b7

View File

@@ -146,7 +146,7 @@ export default class UserMySelf extends User {
try { try {
return await this.getMyFavouriteChatBeansOrThrow() return await this.getMyFavouriteChatBeansOrThrow()
} catch (_) { } catch (_) {
return null return []
} }
} }
async getMyFavouriteChatBeansOrThrow() { async getMyFavouriteChatBeansOrThrow() {
@@ -166,7 +166,7 @@ export default class UserMySelf extends User {
try { try {
return await this.getMyRecentChatBeansOrThrow() return await this.getMyRecentChatBeansOrThrow()
} catch (_) { } catch (_) {
return null return []
} }
} }
async getMyRecentChatBeansOrThrow() { async getMyRecentChatBeansOrThrow() {