Used 'unconvert' to remove unneeded conversions

I've removed unneeded conversions by performing the following commands:

    $ go get -u github.com/mdempsky/unconvert
    $ go list ./... | grep -v vendor | xargs unconvert -apply

Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
This commit is contained in:
Miquel Sabaté Solà 2016-03-18 16:12:56 +01:00
parent 6b2ace6f6b
commit 615c93a77d
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ func (c *MembersCommand) Run(args []string) int {
// Generate the columnized version // Generate the columnized version
output := columnize.SimpleFormat(result) output := columnize.SimpleFormat(result)
c.Ui.Output(string(output)) c.Ui.Output(output)
return 0 return 0
} }

View File

@ -384,7 +384,7 @@ func (s *TestServer) GetKV(key string) []byte {
s.t.Fatalf("err: %s", err) s.t.Fatalf("err: %s", err)
} }
return []byte(v) return v
} }
// PopulateKV fills the Consul KV with data from a generic map. // PopulateKV fills the Consul KV with data from a generic map.