fix golint issues, else blocks (#457)
This commit is contained in:
@@ -78,10 +78,10 @@ func (p *mockedProducer) Produce() (string, bool) {
|
||||
if atomic.AddInt32(&p.count, 1) <= p.total {
|
||||
p.wait.Done()
|
||||
return "item", true
|
||||
} else {
|
||||
time.Sleep(time.Second)
|
||||
return "", false
|
||||
}
|
||||
|
||||
time.Sleep(time.Second)
|
||||
return "", false
|
||||
}
|
||||
|
||||
type mockedListener struct {
|
||||
|
||||
Reference in New Issue
Block a user