chore: update to go 1.20.3 (#496)

* chore: update to go 1.20.3

* chore: update to go 1.20.3
This commit is contained in:
Jeffrey Smith II
2023-04-11 12:48:19 -04:00
committed by GitHub
parent 929952d647
commit 8a2499f476
4 changed files with 83 additions and 51 deletions

View File

@ -160,7 +160,7 @@ func (s baseRW) parsePreviousActive() (Config, error) {
// ListConfigs decodes configs from io readers
func (s baseRW) ListConfigs() (Configs, error) {
cfgs := make(Configs)
_, err := toml.DecodeReader(s.r, &cfgs)
_, err := toml.NewDecoder(s.r).Decode(&cfgs)
for n, cfg := range cfgs {
cfg.Name = n
cfgs[n] = cfg