Codebase list golang-github-vbauerster-mpb / 43159ca
minor: NopStyle bar Vladimir Bauer 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2424 var buf bytes.Buffer
2525 tw := &testWriter{&buf, false}
2626
27 bar := p.AddBar(int64(len(content)))
27 bar := p.New(int64(len(content)), mpb.NopStyle())
2828
2929 _, err := io.Copy(bar.ProxyWriter(tw), strings.NewReader(content))
3030 if err != nil {
5858 var buf bytes.Buffer
5959 tw := &testWriteCloser{&buf, false}
6060
61 bar := p.AddBar(int64(len(content)))
61 bar := p.New(int64(len(content)), mpb.NopStyle())
6262
6363 wc := bar.ProxyWriter(tw)
6464 _, err := io.Copy(wc, strings.NewReader(content))