mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Fix indentation for yamlStringSettings (#651)
The indentation seemed messed up and didn't read well. This change fixes it.
This commit is contained in:
parent
ad5ed02fa4
commit
0c777cfac1
1 changed files with 4 additions and 4 deletions
|
@ -652,11 +652,11 @@ import (
|
|||
|
||||
func yamlStringSettings() string {
|
||||
c := viper.AllSettings()
|
||||
bs, err := yaml.Marshal(c)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to marshal config to YAML: %v", err)
|
||||
bs, err := yaml.Marshal(c)
|
||||
if err != nil {
|
||||
log.Fatalf("unable to marshal config to YAML: %v", err)
|
||||
}
|
||||
return string(bs)
|
||||
return string(bs)
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue