fix(cli): return early in live tracker when no pending tasks
Some checks are pending
Security Scan / security (push) Waiting to run
Some checks are pending
Security Scan / security (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
cdae3a9ac5
commit
bfc47c8400
1 changed files with 3 additions and 0 deletions
|
|
@ -208,6 +208,9 @@ func (tr *TaskTracker) waitLive() {
|
||||||
for i := range n {
|
for i := range n {
|
||||||
tr.renderLine(i, frame)
|
tr.renderLine(i, frame)
|
||||||
}
|
}
|
||||||
|
if n == 0 || tr.allDone() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
ticker := time.NewTicker(80 * time.Millisecond)
|
ticker := time.NewTicker(80 * time.Millisecond)
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue