Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
Remove double output
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAubuchon committed Jul 6, 2016
1 parent c3c73c0 commit 154e094
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions commands/output.go
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -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)
Expand Down

0 comments on commit 154e094

Please sign in to comment.