Skip to content

Commit

Permalink
Remove deprecated toml.DecodeReader func
Browse files Browse the repository at this point in the history
Signed-off-by: David Freilich <david.freilich@appsflyer.com>
  • Loading branch information
dfreilich committed Jan 25, 2022
1 parent ff8f4ad commit 61c83db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/config_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func ValidateConfig(c Config) error {
// parseConfig reads a builder configuration from file
func parseConfig(file *os.File) (Config, error) {
builderConfig := Config{}
tomlMetadata, err := toml.DecodeReader(file, &builderConfig)
tomlMetadata, err := toml.NewDecoder(file).Decode(&builderConfig)
if err != nil {
return Config{}, errors.Wrap(err, "decoding toml contents")
}
Expand Down

0 comments on commit 61c83db

Please sign in to comment.