Codebase list golang-github-vbauerster-mpb / 5d4f68b
explicit precedence it was possible to enter if at curWidth == 0 which is not desired intention at all Vladimir Bauer 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
234234 var fillCount int
235235 curWidth := int(internal.PercentageRound(stat.Total, stat.Current, uint(width)))
236236
237 if curWidth != 0 && !stat.Completed || s.tipOnComplete {
237 if curWidth != 0 && (!stat.Completed || s.tipOnComplete) {
238238 tip = s.tip.frames[s.tip.count%uint(len(s.tip.frames))]
239239 s.tip.count++
240240 fillCount += tip.width