mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
avoid copy error to be shadowed
This commit is contained in:
parent
362708cf35
commit
413949797c
1 changed files with 2 additions and 2 deletions
|
|
@ -199,8 +199,8 @@ func (d Downloader) mergeSegmentsFFmpeg(files []string) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if f, ok := d.Writer.(*os.File); !ok || f.Name() != tmpfile {
|
if f, ok := d.Writer.(*os.File); !ok || f.Name() != tmpfile {
|
||||||
file, err := os.Open(tmpfile)
|
var file *os.File
|
||||||
if err != nil {
|
if file, err = os.Open(tmpfile); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue