Codebase list golang-github-vbauerster-mpb / 25ec6e4
WriteTo check at if scope Vladimir Bauer 6 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6666 }
6767
6868 func newProxyReader(r io.Reader, bar *Bar) io.ReadCloser {
69 wt, isWriterTo := r.(io.WriterTo)
7069 rc := toReadCloser(r)
7170 rc = &proxyReader{rc, bar}
7271
73 if bar.hasEwmaDecorators {
72 if wt, isWriterTo := r.(io.WriterTo); bar.hasEwmaDecorators {
7473 now := time.Now()
7574 rc = &ewmaProxyReader{rc, bar, now}
7675 if isWriterTo {