Skip to content

Commit

Permalink
fix: close file
Browse files Browse the repository at this point in the history
  • Loading branch information
krau committed Feb 1, 2025
1 parent cf1e929 commit 804a86c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/alist/alist.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func (a *Alist) Save(ctx context.Context, filePath, storagePath string) error {
if err != nil {
return err
}
defer file.Close()
fileBytes, err := io.ReadAll(file)
if err != nil {
return err
Expand Down

0 comments on commit 804a86c

Please sign in to comment.