fix: command panic before resolve resource (#451)

This commit is contained in:
Levi authored and GitHub committed 2024-04-03 16:56:20 +08:00
1 parent 4294d07d6a
commit 723697192d
1 file changed
+3
+3
View File
@@ -65,6 +65,9 @@ var (
func printProgress(task *download.Task, title string) {
var rate float64
if task.Meta.Res == nil {
task = emptyTask
}
if task.Meta.Res.Size <= 0 {
rate = 0
} else {