dev: close file

This commit is contained in:
Fernandez Ludovic 2024-04-16 13:19:31 +02:00
parent 44c070af08
commit 7ad7949ca9

View File

@ -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)