From 0afb1f4306cc4563a1ac670b29147c9cd122c091 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 14 Oct 2014 18:20:09 +0400 Subject: [PATCH] Style fixes. --- cmd/config_show.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/config_show.go b/cmd/config_show.go index 8ddff565..119fd37f 100644 --- a/cmd/config_show.go +++ b/cmd/config_show.go @@ -10,15 +10,13 @@ import ( func aptlyConfigShow(cmd *commander.Command, args []string) error { config := context.Config() - pretty_json, err := json.MarshalIndent(config, "", " ") + prettyJSON, err := json.MarshalIndent(config, "", " ") if err != nil { - return fmt.Errorf("unable to parse the config file: %s", err) + return fmt.Errorf("unable to dump the config file: %s", err) } - config_to_string := string(pretty_json) - - fmt.Println(config_to_string) + fmt.Println(string(prettyJSON)) return nil }