1
0
Fork 0

Snake case to camel case.

This commit is contained in:
Alexander Andreev 2022-02-06 03:01:16 +04:00
parent 71c3eb56b6
commit 10a64306a3
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F
1 changed files with 2 additions and 2 deletions

View File

@ -22,14 +22,14 @@ type Configuration struct {
}
func LoadConfiguration(path string) (*Configuration, error) {
config_file, err := os.Open(path)
configFile, err := os.Open(path)
if err != nil {
return nil, errors.Wrap(err, "failed to open configuration file")
}
config := &Configuration{}
if err := yaml.NewDecoder(config_file).Decode(config); err != nil {
if err := yaml.NewDecoder(configFile).Decode(config); err != nil {
return nil, errors.Wrap(err, "failed to decode configuration file")
}