remove unedded atomic call ( protected by a lock )

pull/6851/head
Adrien Delorme 8 years ago
parent 56ccba86c7
commit 4cae413a29

@ -4,7 +4,6 @@ import (
"fmt"
"io"
"sync"
"sync/atomic"
"github.com/cheggaaa/pb"
)
@ -78,7 +77,7 @@ func (spb *StackableProgressBar) NewProxyReader(r io.Reader) io.Reader {
}
func (spb *StackableProgressBar) prefix() {
spb.Bar.ProgressBar.Prefix(fmt.Sprintf("%d items: ", atomic.LoadInt32(&spb.items)))
spb.Bar.ProgressBar.Prefix(fmt.Sprintf("%d items: ", spb.items))
}
func (spb *StackableProgressBar) Finish() {

Loading…
Cancel
Save