git/githistory/log: don't loose 't' scope

This commit is contained in:
Taylor Blau 2017-06-14 16:31:52 -06:00
parent 12fb91a431
commit 4546bec8c3

@ -88,11 +88,11 @@ func (l *Logger) Percentage(msg string, total uint64) *PercentageTask {
func (l *Logger) enqueue(ts ...Task) {
if l == nil {
for _, t := range ts {
go func() {
go func(t Task) {
for range <-t.Updates() {
// Discard all updates.
}
}()
}(t)
}
return
}