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