dev: close file
This commit is contained in:
parent
44c070af08
commit
7ad7949ca9
@ -103,6 +103,8 @@ func LoadConfiguration() (*Configuration, error) {
|
||||
return nil, fmt.Errorf("file %s open: %w", configFilePath, err)
|
||||
}
|
||||
|
||||
defer func() { _ = file.Close() }()
|
||||
|
||||
var cfg Configuration
|
||||
|
||||
err = yaml.NewDecoder(file).Decode(&cfg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user