Skip to content

Commit

Permalink
dev: close file
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Apr 16, 2024
1 parent 44c070a commit 7ad7949
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/commands/internal/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ad7949

Please sign in to comment.