mirror of
https://github.com/bit1001/tdl.git
synced 2025-10-04 12:14:21 +08:00
fix(downloader): close file error
This commit is contained in:
parent
6bfe8c8f91
commit
d81c5d072e
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ func (d *Downloader) download(ctx context.Context, item *Item) error {
|
||||||
f: f,
|
f: f,
|
||||||
tracker: tracker,
|
tracker: tracker,
|
||||||
})
|
})
|
||||||
if err = f.Close(); err != nil {
|
if err := f.Close(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue