Merge pull request #488 from trheyi/main

[add] neo content
This commit is contained in:
Max 2023-10-25 00:55:06 +08:00 committed by GitHub
commit bfc7b6930d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -317,11 +317,7 @@ func (neo *DSL) write(msg *message.JSON, w io.Writer, ctx command.Context, messa
return nil
}
args := []interface{}{ctx, messages, msg}
if msg.IsDone() {
args = append(args, string(content))
}
args := []interface{}{ctx, messages, msg, string(content)}
p, err := process.Of(neo.Write, args...)
if err != nil {
return err