mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 05:47:51 +08:00
dont put newlines in refs json output
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
parent
ace06b47d1
commit
8d6fa2ede7
@ -135,7 +135,7 @@ Note: list all refs recursively with -r.
|
||||
return nil, errors.New(obj.Err)
|
||||
}
|
||||
|
||||
return strings.NewReader(obj.Ref), nil
|
||||
return strings.NewReader(obj.Ref + "\n"), nil
|
||||
}
|
||||
|
||||
return &cmds.ChannelMarshaler{
|
||||
@ -322,7 +322,6 @@ func (rw *RefWriter) WriteEdge(from, to key.Key, linkname string) error {
|
||||
default:
|
||||
s += to.Pretty()
|
||||
}
|
||||
s += "\n"
|
||||
|
||||
rw.out <- &RefWrapper{Ref: s}
|
||||
return nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user