Skip to content

Commit 7ad7949

Browse files
committed
dev: close file
1 parent 44c070a commit 7ad7949

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/commands/internal/configuration.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ func LoadConfiguration() (*Configuration, error) {
103103
return nil, fmt.Errorf("file %s open: %w", configFilePath, err)
104104
}
105105

106+
defer func() { _ = file.Close() }()
107+
106108
var cfg Configuration
107109

108110
err = yaml.NewDecoder(file).Decode(&cfg)

0 commit comments

Comments
 (0)