Skip to content

Commit

Permalink
fix: close loadFile (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored May 14, 2024
1 parent 0eea789 commit 4d5f642
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions store/boltdb/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func (m *boltStore) loadByFile(loadFile string) error {
if err != nil {
return err
}
defer cf.Close()
data := &DefaultData{}
if err := yaml.NewDecoder(cf).Decode(data); err != nil {
fmt.Printf("[ERROR] %v\n", err)
Expand Down

0 comments on commit 4d5f642

Please sign in to comment.