Skip to content

Commit

Permalink
fix depreciated call
Browse files Browse the repository at this point in the history
  • Loading branch information
hay-kot committed Nov 29, 2022
1 parent 87da23c commit f590a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flint/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func ReadConfig(r io.Reader, format ConfigFormat) (*Config, error) {
return nil, err
}
case TOML:
if _, err := toml.DecodeReader(r, &c); err != nil {
if _, err := toml.NewDecoder(r).Decode(&c); err != nil {
return nil, err
}
case YAML:
Expand Down

0 comments on commit f590a03

Please sign in to comment.