cmd/mmc/post.go | 2 +- diff --git a/cmd/mmc/post.go b/cmd/mmc/post.go index f7863477f5b6055043b07b29208f2843cea477ab604beaf2e577548a42af7527..2767a0b66ea6563d9d1e981fe30eda1c5e6c1cd542ae4be9e4fdee1a5cd24758 100644 --- a/cmd/mmc/post.go +++ b/cmd/mmc/post.go @@ -134,7 +134,7 @@ return nil, nil } post := &model.Post{ChannelId: chId} var lines []string - for _, line := range strings.Split(text, "\n") { + for line := range strings.SplitSeq(text, "\n") { if !strings.HasPrefix(line, CmdFile) { lines = append(lines, line) continue