From a356aeb9b9d0ccedfc7ff35164b4bf1d09c283c9 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 18 Feb 2019 19:27:24 -0800 Subject: [PATCH] cmds/config: make config get use EmitOnce (interop) License: MIT Signed-off-by: Steven Allen --- core/commands/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/config.go b/core/commands/config.go index f3b17e490..067cbd9de 100644 --- a/core/commands/config.go +++ b/core/commands/config.go @@ -120,7 +120,7 @@ Set the value of the 'Datastore.Path' key: return err } - return res.Emit(output) + return cmds.EmitOnce(res, output) }, Encoders: cmds.EncoderMap{ cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, out *ConfigField) error {