Skip to content

Commit

Permalink
refactor: use toml.Unmarshal instead of toml.Decode (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Nov 16, 2024
1 parent dff4dc9 commit 1b4440c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func parseConfig(path string, config *lint.Config) error {
if err != nil {
return errors.New("cannot read the config file")
}
_, err = toml.Decode(string(file), config)
err = toml.Unmarshal(file, config)
if err != nil {
return fmt.Errorf("cannot parse the config file: %v", err)
}
Expand Down

0 comments on commit 1b4440c

Please # to comment.