chore: 修缮非 throw 方法返回值
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user