mirror of
https://github.com/bit1001/tdl.git
synced 2025-09-14 10:14:32 +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,
|
||||
tracker: tracker,
|
||||
})
|
||||
if err = f.Close(); err != nil {
|
||||
if err := f.Close(); err != nil {
|
||||
return err
|
||||
}
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue