Commit 72aecc7b authored by Hugo Moreau's avatar Hugo Moreau
Browse files

Config: Indenting config.json file

`config.json` is now indented for a better reading.

 * tools/config.go : Modified.
parent 59e699fa
Pipeline #27790 passed with stage
in 2 minutes and 26 seconds
......@@ -26,7 +26,7 @@ func GenerateConfig(formulaeFile string) []byte {
config.Formulae = append(config.Formulae, scanner.Text())
}
var configJson []byte
if configJson, err = json.Marshal(config); err != nil {
if configJson, err = json.MarshalIndent(config, "", "\t"); err != nil {
panic(err)
}
return configJson
......@@ -38,7 +38,7 @@ func GenerateSimpleConfig(formula string) []byte {
}
var configJson []byte
var err error
if configJson, err = json.Marshal(config); err != nil {
if configJson, err = json.MarshalIndent(config, "", "\t"); err != nil {
panic(err)
}
return configJson
......@@ -50,7 +50,7 @@ func GenerateEmptyConfig() []byte {
}
var configJson []byte
var err error
if configJson, err = json.Marshal(config); err != nil {
if configJson, err = json.MarshalIndent(config, "", "\t"); err != nil {
panic(err)
}
return configJson
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment