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
+1
-1
bar.go
less
more
291
291
}
292
292
}
293
293
294
func (b *Bar) updateState(cb func(s *state)) {
294
func (b *Bar) updateState(cb func(*state)) {
295
295
s := b.getState()
296
296
cb(&s)
297
297
select {
+1
-1
progress.go
less
more
226
226
}
227
227
}
228
228
229
func (p *Progress) updateConf(cb func(c *userConf)) {
229
func (p *Progress) updateConf(cb func(*userConf)) {
230
230
c := p.getConf()
231
231
cb(&c)
232
232
select {