diff --git a/cmd/oras/internal/display/progress/manager.go b/cmd/oras/internal/display/progress/manager.go index c0f500df7..e0247e5dd 100644 --- a/cmd/oras/internal/display/progress/manager.go +++ b/cmd/oras/internal/display/progress/manager.go @@ -126,9 +126,8 @@ func (m *manager) newStatus(id int) Status { func (m *manager) update(ch chan *status, id int) { defer m.updating.Done() for s := range ch { - n := m.statuses[id].Update(s) m.rwLock.Lock() - m.statuses[id] = n + m.statuses[id] = m.statuses[id].Update(s) m.rwLock.Unlock() } }