config: avoid using deprecated function
Per staticcheck, DecodeReader is deprecated and should be replaced.
Closes: [via git-merge-pr]
@@ -206,7 +206,7 @@ func parseConfigs(dir string) ([]Config, error) {
return nil, err
}
var cfg Config
- _, err = toml.DecodeReader(f, &cfg)
+ _, err = toml.NewDecoder(f).Decode(&cfg)
f.Close()
if err != nil {
if err, ok := err.(toml.ParseError); ok {
