Codebase list golang-github-vbauerster-mpb / b312dff
Remove unnecessary param name form cb func declaration Vladimir Bauer 9 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
291291 }
292292 }
293293
294 func (b *Bar) updateState(cb func(s *state)) {
294 func (b *Bar) updateState(cb func(*state)) {
295295 s := b.getState()
296296 cb(&s)
297297 select {
226226 }
227227 }
228228
229 func (p *Progress) updateConf(cb func(c *userConf)) {
229 func (p *Progress) updateConf(cb func(*userConf)) {
230230 c := p.getConf()
231231 cb(&c)
232232 select {