Minor cleanup and fixes

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2026-06-01 21:48:41 +08:00
parent 5ccde3f34a
commit 4664847f10
16 changed files with 38 additions and 8 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ func upload(ctx *gin.Context) {
return
}
lines := strings.Split(content, "\n")
for _, rawLine := range lines {
lines := strings.SplitSeq(content, "\n")
for rawLine := range lines {
line := strings.TrimSpace(rawLine)
if line == "" {
continue