fix_ini_save_error

This commit is contained in:
flow00 2020-03-15 17:55:27 +08:00 committed by Márk Sági-Kazár
parent c42a305a4b
commit c6ee9808ab
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}