Skip to content

Commit

Permalink
fix: close config file (#1531)
Browse files Browse the repository at this point in the history
Co-authored-by: M. Mert Yildiran <me@mertyildiran.com>
  • Loading branch information
testwill and mertyildiran committed May 5, 2024
1 parent 06e0def commit 22a777a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/config.go
Expand Up @@ -146,7 +146,8 @@ func loadConfigFile(config *ConfigStruct, silent bool) error {
} else {
ConfigFilePath = cwdConfig
}

defer reader.Close()

buf, err := io.ReadAll(reader)
if err != nil {
return err
Expand Down

0 comments on commit 22a777a

Please sign in to comment.