mirror of
https://github.com/iyear/tdl
synced 2025-01-09 04:17:35 +08:00
fix(downloader): close file error
This commit is contained in:
parent
6bfe8c8f91
commit
d81c5d072e
@ -91,7 +91,7 @@ func (d *Downloader) download(ctx context.Context, item *Item) error {
|
||||
f: f,
|
||||
tracker: tracker,
|
||||
})
|
||||
if err = f.Close(); err != nil {
|
||||
if err := f.Close(); err != nil {
|
||||
return err
|
||||
}
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user