Browse code

pkg/progress: normalize comment formatting

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/11/27 23:41:23
Showing 1 changed files
... ...
@@ -34,7 +34,7 @@ func NewProgressReader(in io.ReadCloser, out Output, size int64, id, action stri
34 34
 func (p *Reader) Read(buf []byte) (n int, err error) {
35 35
 	read, err := p.in.Read(buf)
36 36
 	p.current += int64(read)
37
-	updateEvery := int64(1024 * 512) //512kB
37
+	updateEvery := int64(1024 * 512) // 512kB
38 38
 	if p.size > 0 {
39 39
 		// Update progress for every 1% read if 1% < 512kB
40 40
 		if increment := int64(0.01 * float64(p.size)); increment < updateEvery {