Skip to content

Commit

Permalink
fix_ini_save_error
Browse files Browse the repository at this point in the history
  • Loading branch information
deep-bugs authored and sagikazarmark committed May 5, 2020
1 parent c42a305 commit c6ee980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit c6ee980

Please sign in to comment.