Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
orestonce committed Apr 11, 2024
1 parent a58dd3b commit d4fa8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (this *DownloadEnv) SleepDur(d time.Duration) {
}
}

func (this *DownloadEnv) downloader(tsList []TsInfo, downloadDir string, encInfo *EncryptInfo, threadCount int) (errMsg error) {
func (this *DownloadEnv) downloader(tsList []TsInfo, downloadDir string, encInfo *EncryptInfo, threadCount int) (err error) {
if threadCount <= 0 || threadCount > 1000 {
return errors.New("DownloadEnv.threadCount invalid: " + strconv.Itoa(threadCount))
}
Expand Down

0 comments on commit d4fa8ad

Please sign in to comment.