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