Skip to content

Commit 1109abd

Browse files
authored
fix: add instancetracker if nill (#575)
1 parent a8f67e7 commit 1109abd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/progressPrinter/progress.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ func CreateTracker(title string, total int64) *progress.Tracker {
102102
Units: progress.UnitsDefault,
103103
}
104104

105+
if instance == nil {
106+
instance = GetInstance()
107+
}
105108
instance.pw.AppendTracker(tracker)
106109
return tracker
107110
}

0 commit comments

Comments
 (0)