mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-31 04:30:44 +00:00
Style fixes.
This commit is contained in:
+3
-5
@@ -10,15 +10,13 @@ import (
|
|||||||
func aptlyConfigShow(cmd *commander.Command, args []string) error {
|
func aptlyConfigShow(cmd *commander.Command, args []string) error {
|
||||||
|
|
||||||
config := context.Config()
|
config := context.Config()
|
||||||
pretty_json, err := json.MarshalIndent(config, "", " ")
|
prettyJSON, err := json.MarshalIndent(config, "", " ")
|
||||||
|
|
||||||
if err != nil {
|
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(string(prettyJSON))
|
||||||
|
|
||||||
fmt.Println(config_to_string)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user