Avoid possible nil panic
Vladimir Bauer
8 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
progress.go
less
more
96
96
case p.ops <- op:
97
97
return <-result
98
98
case <-p.quit:
99
return nil
99
return new(Bar)
100
100
}
101
101
}
102
102