@cryptotaxi247 / kubo / commits / a356aeb9b

cmds/config: make config get use EmitOnce

(interop) License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Feb 18, 2019 at 19:27 UTC a356aeb9b9d0ccedfc7ff35164b4bf1d09c283c9
1 file changed +1 -1
core/commands/config.go
+1 -1
@@ -120,7 +120,7 @@ Set the value of the 'Datastore.Path' key:
120 return err
121 }
122
123 - return res.Emit(output)
123 + return cmds.EmitOnce(res, output)
124 },
125 Encoders: cmds.EncoderMap{
126 cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, out *ConfigField) error {