Commit b898d652 authored by ale's avatar ale
Browse files

Don't return an extra newline

parent 888a43c8
......@@ -74,6 +74,7 @@ func (p *DictProxyServer) handleLookup(ctx context.Context, lw unix.LineResponse
if err := json.NewEncoder(&buf).Encode(obj); err != nil {
return err
// json Encode will already add a newline.
return lw.WriteLine(buf.Bytes())
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment