mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-14 12:02:27 +08:00
fix(lint): check strings.Builder WriteString return value (errcheck)
This commit is contained in:
@@ -1176,7 +1176,7 @@ func extractLosslessTextFromContent(content any) (string, bool) {
|
||||
if !ok {
|
||||
return "", false
|
||||
}
|
||||
b.WriteString(text)
|
||||
_, _ = b.WriteString(text)
|
||||
}
|
||||
return b.String(), true
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user