From 154e0946de94d5cd60ae3875c737dd58494042a4 Mon Sep 17 00:00:00 2001 From: Chris Aubuchon Date: Wed, 6 Jul 2016 13:22:07 -0500 Subject: [PATCH] Remove double output --- commands/output.go | 2 -- main.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/output.go b/commands/output.go index 9397f09..4ea6b66 100644 --- a/commands/output.go +++ b/commands/output.go @@ -30,8 +30,6 @@ func (c *Cmd) OutputJSON(v interface{}, prettyFlag bool) error { return err } - fmt.Fprintf(c.Out, string(jsonRaw)) - jsonStr := string(jsonRaw) if strings.HasSuffix(jsonStr, "\n") { fmt.Fprintf(c.Out, jsonStr) diff --git a/main.go b/main.go index 6748d73..e6e079a 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ import ( ) const Name = "consul-cli" -const Version = "0.3.0" +const Version = "0.3.1" func main() { log.SetOutput(ioutil.Discard)