Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify and reuse
tryLoadConfig
(#1248)
`toml.DecodeFile` does literally what we're doing except without the custom error messages, which I don't think should matter as we don't intentionally expose those as an actual API; there also doesn't seem to be anything special about what `UseOverride` is doing to prevent it from using `tryLoadConfig`. This will mean error output will probably have changed slightly, but it should still be accurate and we're not purposely providing custom or dedicated errors in this package so I don't think it should be considered breaking.
- Loading branch information