Snake case to camel case.
This commit is contained in:
parent
71c3eb56b6
commit
10a64306a3
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user