refactor(liveRoom): 删除冗余代码并优化错误处理

- 移除了 catch 块中的冗余空分号
-调整了错误处理逻辑,使代码结构更清晰
This commit is contained in:
xingyy 2025-02-12 11:06:53 +08:00
parent 83d090720a
commit 93a7d853dc

View File

@ -55,7 +55,7 @@ const initializePlayer = async () => {
// on close // on close
}) .catch(() => { }) .catch(() => {
// on cancel // on cancel
});; })
console.error('播放器初始化失败:', error) console.error('播放器初始化失败:', error)
} }
} }