Merge branch 'ikechan8370:v2' into v2

This commit is contained in:
ycxom 2025-02-16 02:02:22 +08:00 committed by GitHub
commit 48518b49c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 27 additions and 23 deletions

View file

@ -3,9 +3,12 @@
* @param msg
*/
export function filterResponseChunk (msg) {
if (!msg || typeof msg !== 'string') {
if (!msg) {
return false
}
if (typeof msg !== 'string') {
return msg
}
if (!msg.trim()) {
return false
}