Skip to content

Commit

Permalink
fix: add instancetracker if nill
Browse files Browse the repository at this point in the history
  • Loading branch information
jokestax committed Feb 8, 2025
1 parent a8f67e7 commit 4066e12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/progressPrinter/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ func CreateTracker(title string, total int64) *progress.Tracker {
Units: progress.UnitsDefault,
}

if instance == nil {
instance = GetInstance()
}
instance.pw.AppendTracker(tracker)
return tracker
}
Expand Down

0 comments on commit 4066e12

Please sign in to comment.