mirror of
https://github.com/spf13/viper.git
synced 2024-12-26 14:01:14 -07:00
fix_ini_save_error
This commit is contained in:
parent
c42a305a4b
commit
c6ee9808ab
2
viper.go
2
viper.go
@ -1621,7 +1621,7 @@ func (v *Viper) marshalWriter(f afero.File, configType string) error {
|
||||
if sectionName == "default" {
|
||||
sectionName = ""
|
||||
}
|
||||
cfg.Section(sectionName).Key(keyName).SetValue(Get(key).(string))
|
||||
cfg.Section(sectionName).Key(keyName).SetValue(v.Get(key).(string))
|
||||
}
|
||||
cfg.WriteTo(f)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user